JSON vs Binary Formats
Discussions criticize JSON's performance and size inefficiency compared to binary serialization formats like Protobuf, Flatbuffers, and MsgPack, recommending alternatives for high-performance use cases while noting JSON's readability advantages.
Activity Over Time
Top Contributors
Keywords
Sample Comments
In what context is json slower than protobuf?
JSON is just terrible size-wise, it can't efficiently store binary data
Just a typed JSON and with that faster serialization? Not to mention where is the compression comparison?
You are talking a lot about performance but using JSON everywhere. You would be much better off using protobuf or flatbuffers for this.
I think the only reason to use json over the binary format is readability, so why care about this?
JSON is not a simple format. I don't feel confident enough to recommend anything in particular, but I believe one of the well-designed binary formats would be a much better choice.I'll just leave this here.https://news.ycombinator.com/item?id=28826600https://seriot.ch/pr
I'd rather see less JSON and more binary serialization in the world, rather than bending over backwards to make JSON faster...
If speed matters, perhaps you shouldn't be using JSON in the first place...
I think that using JSON is rather inefficient and restrictive compared with using a binary format.
Why would you use JSON in a high performance context anyway?