Parsing JSON Really Quickly

[)roi(]

Executive Member
Joined
Apr 15, 2005
Messages
6,282
Reaction score
405
Location
Parsing Gigabytes of JSON per Second
JavaScript Object Notation or JSON is a ubiquitous data exchange format on the Web. Ingesting JSON documents can become a performance bottleneck due to the sheer volume of data. We are thus motivated to make JSON parsing as fast as possible.
Despite the maturity of the problem of JSON parsing, we show that substantial speedups are possible. We present the first standard-compliant JSON parser to process gigabytes of data per second on a single core, using commodity processors. We can use a quarter or fewer instructions than a state-of-the-art reference parser like RapidJSON. Unlike other validating parsers, our software (simdjson) makes extensive use of Single Instruction, Multiple Data (SIMD) instructions.
Published paper: https://arxiv.org/abs/1902.08318
GitHub repository: https://github.com/lemire/simdjson


The approach taken is nothing short of amazing.
 
Cool stuff.

I’ve used similar techniques for other parsers.
 
Last edited:
Top
Sign up to the MyBroadband newsletter
X