>>927407
How does BSON have better parsing speed? Everything's null terminated, so you can't do random seeks. You have to read in every single byte, and you can't do multi-threading. My suggestions for a binary protocol:
>all objects are in a flat table
>all kv pairs/items in arrays are constant size
>objects have the length at the start (not null terminated)
>specify an object (string/object/array) by referencing it's location in the table
This would emphasize parsing speed, and probably be smaller than JSON.
It would be shit for streaming of course.
>>927414
After 30 seconds of googling, I found ubjson. It looks half decent.
>they actually care about size