3 ms·
Why only compress the JSON? MessagePack will compress about as well as JSON does.
by kentonv 7y ago
Why only compress the JSON? MessagePack will compress about as well as JSON does.
- nabla9 7y agoThe sales pitch for MessagePack is: like JSON, but fast and small.
- kentonv 7y agoCorrect: Uncompressed MessagePack is faster and smaller than uncompressed JSON, and compressed MessagePack is faster and smaller than compressed JSON. I still don't see why you'd compare uncompressed MesasgePack to compressed JSON.
- nabla9 7y agoBecause I suspect that the MesasgePack–compressed or not–is not the worth of the effort until I see comparison. In other words, compressed MesasgePack is probably only tiny amount smaller than compressed JSON.
- kentonv 7y agoSure, a comparison between compressed JSON vs. compressed MessagePack is interesting. I interpreted your original message as requesting a comparison between compressed JSON vs. uncompressed MessagePack, which didn't make sense (but which I see people ask a lot, including elsewhere in this thread). Sorry if I misunderstood.
- nabla9 7y ago>I interpreted your original message as requesting a comparison between compressed JSON vs. uncompressed MessagePack You interpreted it correctly. And it makes sense. If MessagePack is alternative to JSON so in JSON.zstd if I need compactness.