chadaustin / sajson

Lightweight, extremely high-performance JSON parser for C++11
MIT License
568 stars 43 forks source link

Kill the intermediate parsed arrays and objects #19

Closed aeidelson closed 7 years ago

aeidelson commented 7 years ago

Allow indirect iterating over arrays/objects, rather than constructing an intermediate representation.

There's a lot of hacky calls into C, so i'm pretty confident this could be a lot better. Feel free to patch in and fix if there are large changes. It seems to be quite a bit slower than the current API (50% slower), probably because of all the calls out of swift.

chadaustin commented 7 years ago

Merging -- I'll hack on master.