34kb
Imported from historical reading log.
- Extracted main post via
api.fxtwitter.comfallback; the attached image includes the concrete compression results. - Sam Rose compares the same payload as JSON (
34kb) and protobuf (15kb) and finds that after compression, JSON is often slightly smaller than protobuf for Brotli, Zstd, gzip, and bzip2; protobuf only wins clearly for lz4 and barely for lzma in his sample. - Concrete reported sizes from the screenshot: Brotli
json 4237 < bin 4279, Zstd4484 < 4702, gzip4766 < 4949, bzip25208 < 5302, lzma4500 > 4484, lz46245 > 5832. - Why it is interesting: it is a good reminder that
binary format smaller on disk/wireandbinary format compresses smallerare different questions; verbose JSON field names and repeated structure can give compressors more redundancy to exploit. - Good discussion angle:
protobuf vs JSON size intuition breaks once a strong general-purpose compressor enters the picture.