Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Parsing JSON at Gigabytes per Second with simdjson

Автор: Utah Cpp Programmers

Загружено: 2024-05-08

Просмотров: 3031

Описание:

Parsing JSON inputs is a common task in network oriented services. Many web APIs provide data as JSON outputs that are fed into another process. Parsing and validating JSON text inputs can be a significant bottleneck for a high throughput network service.

This month, Richard Thomson will give us an overview of the simdjson library for parsing JSON inputs. From a feature perspective, this library gives us fast parsing and validation of JSON input documents and provides an API for traversing the parsed document.

What's more interesting about this library is the approach taken by the implementation: using SIMD CPU instruction set extensions for parsing and validating the JSON inputs. This involves a two-pass algorithm for scanning the input text for interesting characters and a second pass that builds a document structure and uses SIMD instructions for number parsing and UTF-8 string validation. The library also uses a dynamic dispatch mechanism to allow a single build of the library to select the appropriate set of SIMD instructions at runtime.

The presentation will cover the following topics:
A brief overview of SIMD instruction set extensions
How to extract data from the parsed document structure?
What does parsing look like with SIMD instructions?
How does the implementation use dynamic dispatch for instruction set selection at runtime?
How does the implementation expose SIMD operations?

simdjson: https://simdjson.org/
Example code: https://github.com/LegalizeAdulthood/...

Meetup: https://www.meetup.com/utah-cpp-progr...
Past topics: https://utahcpp.wordpress.com/past-me...
Future topics: https://utahcpp.wordpress.com/past-me...

00:00 Introduction
01:30 Sample Data Set
07:30 Sample Program Demonstration
09:03 Review of SIMD
11:28 Instruction Set Extensions
14:30 simdjson Library
20:30 simdjson Parsing Algorithm
26:00 Sample Code
31:25 simdjson_result
34:09 DOM Iterator Support
35:24 Querying the DOM for Data
39:40 Pretty Printing
44:11 Impression of Using the DOM
45:09 Parser Lifetime Requirements
46:07 DOM Internal Structure
50:00 DOM Traversal
54:27 Implementation Selection
57:40 cpuid Wrapper
1:01:53 Dynamic Dispatch
1:05:00 Haswell Parser
1:09:45 Inspiration for Your SIMD Code
1:14:45 Summary

Parsing JSON at Gigabytes per Second with simdjson

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

“Data Engineering at the Speed of Your Disk” by Daniel Lemire (Université du Québec)

“Data Engineering at the Speed of Your Disk” by Daniel Lemire (Université du Québec)

Parsing JSON Really Quickly: Lessons Learned

Parsing JSON Really Quickly: Lessons Learned

Парсим числа через SIMD, Сергей Слотин

Парсим числа через SIMD, Сергей Слотин

Git Revert

Git Revert

Managing Headers with Include What You Use

Managing Headers with Include What You Use

Вперед и назад - Шифр ​​

Вперед и назад - Шифр ​​"Вперед"

Код работает в 100 раз медленнее из-за ложного разделения ресурсов.

Код работает в 100 раз медленнее из-за ложного разделения ресурсов.

BINARY vs TEXT File Serialization

BINARY vs TEXT File Serialization

SIMD and vectorization using AVX intrinsic functions (Tutorial)

SIMD and vectorization using AVX intrinsic functions (Tutorial)

Возможно ли создать компьютеры с техпроцессом меньше 1 нм

Возможно ли создать компьютеры с техпроцессом меньше 1 нм

Как взломать любое программное обеспечение

Как взломать любое программное обеспечение

Parsing Gigabytes of JSON per Second - Richard Gankema

Parsing Gigabytes of JSON per Second - Richard Gankema

SIMD Libraries in C++ - Jeff Garland - CppNow 2023

SIMD Libraries in C++ - Jeff Garland - CppNow 2023

Ускоренный курс C++: Введение во встроенные функции SIMD

Ускоренный курс C++: Введение во встроенные функции SIMD

19. Роб Пайк — Что мы сделали правильно, что мы сделали неправильно | GopherConAU 2023

19. Роб Пайк — Что мы сделали правильно, что мы сделали неправильно | GopherConAU 2023

The Windows 11 Disaster That's Killing Microsoft

The Windows 11 Disaster That's Killing Microsoft

Refterm Lecture Part 5 - Parsing with SIMD

Refterm Lecture Part 5 - Parsing with SIMD

SIMD instructions with Rust on Android by Guillaume Endignoux - Rust Zürisee June 2023

SIMD instructions with Rust on Android by Guillaume Endignoux - Rust Zürisee June 2023

Adventures in SIMD-Thinking (part 1 of 2) - Bob Steagall - CppCon 2020

Adventures in SIMD-Thinking (part 1 of 2) - Bob Steagall - CppCon 2020

Что такое квантовая теория

Что такое квантовая теория

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com