4 ms·
I used the rapidjson streams with my little embedded REST HTTP(s) server library: https://github.com/Edgio/is2/ https://github.com/Edgio/is2/ We needed it for
by tinselcity 4y ago
I used the rapidjson streams with my little embedded REST HTTP(s) server library: https://github.com/Edgio/is2/ https://github.com/Edgio/is2/
We needed it for streaming large json from async server sockets.
Code link:
https://github.com/Edgio/is2/blob/master/include/is2/support/nbq_stream.h https://github.com/Edgio/is2/blob/master/include/is2/support...
You just had to implement the interfaces like Peek/Take/Tell/etc. It worked really well for us.
Probably not as fast as simdjson, but they used some simd tricks I think for skipping whitespace:
https://rapidjson.org/md_doc_internals.html#SkipwhitespaceWithSIMD https://rapidjson.org/md_doc_internals.html#SkipwhitespaceWi...