Hacker News new | ask | show | jobs
by xiphias2 864 days ago
I don't really understand what's new here compared to what SIMDJSON supported already.

Anyways, it's the best JSON parser I found (in any language), I implemented fastgron (https://github.com/adamritter/fastgron) on top of it because of the on demand library performance.

One problem with the library was that it needed extra padding at the end of the JSON, so it didn't support streaming / memory mapping.

2 comments

This on-demand model has been implemented in simdjson for awhile. This is just the release of the paper.

Previously, simdjson only had a DOM model, where the entire document was parsed in one shot.

Nice work! I will have to check out your implementation and see if I can borrow any of your optimization ideas. I built jindex (https://github.com/ckampfe/jindex) because I also wanted a faster gron!