tinselcity·3 tahun yang lalu·discussI used the rapidjson streams with my little embedded REST HTTP(s) server library: 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...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#SkipwhitespaceWi...
tinselcity·6 tahun yang lalu·discussI wrote a REST-ful C++ http(s) server library with support for url routes/json etc: https://github.com/verizondigital/is2 It's been useful for me if I've needed to use C++. It's similar to libmicrohttpd.
We needed it for streaming large json from async server sockets.
Code link: 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#SkipwhitespaceWi...