Simdjson – Parsing Gigabytes of JSON per Second
1–10 of 202 posts
Re: Simdjson – Parsing Gigabytes of JSON per Second
#2Re: Simdjson – Parsing Gigabytes of JSON per Second
#3Re: Simdjson – Parsing Gigabytes of JSON per Second
#4Re: Simdjson – Parsing Gigabytes of JSON per Second
#5Re: Simdjson – Parsing Gigabytes of JSON per Second
#6Really? I thought they diverged specifications long enough ago (though using those extras could be discouraged in some cases).
Re: Simdjson – Parsing Gigabytes of JSON per Second
#7> All JSON is JavaScript, but not all JavaScript is JSON Really? I thought they diverged specifications long enough ago (though using those extras could be discouraged in some cases).
Re: Simdjson – Parsing Gigabytes of JSON per Second
#8I guess the question is, what do you parse it to? I'm guessing definitely not turning objects into std::unordered_map and arrays into std::vector or some such. So how easy it is to use the "parsed" data structure? How easy is it to add an element to some deeply nested array for example?
Methods like this are used for batch search / summation where only a fraction of the parsed data is actually relevant during any particular run. You'll find similar approaches used in e.g. the row format parser of a database like MongoDB or Postgres
Re: Simdjson – Parsing Gigabytes of JSON per Second
#9I guess the question is, what do you parse it to? I'm guessing definitely not turning objects into std::unordered_map and arrays into std::vector or some such. So how easy it is to use the "parsed" data structure? How easy is it to add an element to some deeply nested array for example?
Re: Simdjson – Parsing Gigabytes of JSON per Second
#10Though this job is trickier than it may look. The logic to extract the "relevant" bits is often dynamic or tied to user input but for the scanner/lexer to be ultrafast it has to be tightly compiled. You can try jitting but libllvm is probably too heavyweight for parsing json.