3 ms·
Better option would be to parse json into Bson and then use that as the in-memory format. It uses minimal memory and is actually also fast to access without par
by kukkamario 2y ago
Better option would be to parse json into Bson and then use that as the in-memory format. It uses minimal memory and is actually also fast to access without parsing into some other data structure.
- lelanthran 2y agoTBH I didn't know about Bson (Binary-json?). All I had was a tiny little device that rxed JSON and needed to retrieve values from the tree.
- nwpierce 2y agoThat sounds a little like what I came up with a little while back. My lib can stream JSON to/from my own compact binary format that is easy to traverse/emit in C: https://github.com/nwpierce/jsb/ https://github.com/nwpierce/jsb/