cpp-serializers icon indicating copy to clipboard operation
cpp-serializers copied to clipboard

Do size comparison after gzip

Open michaeleiselsc opened this issue 8 years ago • 1 comments

For anyone thinking about these formats for client-server communication, they will want to know what the size of them is after gzipping or applying other forms of compression. It can be very surprising - JSON can beat binary formats.

michaeleiselsc avatar Feb 22 '17 00:02 michaeleiselsc

This can be especially important for Cap'n Proto, as empty or default fields remain in the data as all zeros, which will then be reduced when packing or compressing. If the packing feature of Cap'n Proto is not being used then it is important to use compression to reduce the size of the output.

sburton84 avatar Oct 25 '17 13:10 sburton84