Re:Protobuf-ES: The Protocol Buffers TypeScript/JavaScript r...
by throw827474737 on Monday November 07, 2022 @04:07AM
(#33503233)
> You're making assumptions based
No, not at all... coming from embedded where apeed, memory size and also bandwidth did count, json was actually.not just worse, but just wouldn't have been feasible (because our protobufs already barely fit memory and MTU constraints).
(b) I'm talking about a narrow & specific case. PB may outperform JSON in most cases but I'm very specifically referring to browsers where JSON is native (& highly optimised) whereas PB is provided by a selection of open source libraries written in javascript. So that domain heavily favours JSON perf-wise.