News for hackers. Stuff that matters.
Re:Protobuf-ES: The Protocol Buffers TypeScript/JavaScript r... by ninepoints on Monday October 31, 2022 @07:54AM (#33404536)
Honestly, gzipped json is likely much smaller than uncompressed protobuf.

If you were going to use a binary protocol, why choose one that has no partial parsing/toc these days. There are much better alternatives IMO (flatbuffers being one of them)

Re:Protobuf-ES: The Protocol Buffers TypeScript/JavaScript r... by oll3 on Monday October 31, 2022 @06:34PM (#33414277)
> Honestly, gzipped json is likely much smaller than uncompressed protobuf.

Likely not. See here for a comparison: https://nilsmagnus.github.io/post/proto-json-sizes/

Btw, binary formats can also be compressed though it typically won't yield the same compression ratio as similar json would since there will be less repeation in the binary format.

Re:Protobuf-ES: The Protocol Buffers TypeScript/JavaScript r... by ninepoints on Sunday November 13, 2022 @08:04PM (#33589104)
Or, we could have done a comparison with large strings and see the opposite result. Silly benchmark is silly (or should I say, specific)