News for hackers. Stuff that matters.
Re:Protobuf-ES: The Protocol Buffers TypeScript/JavaScript r... by walls on Monday October 31, 2022 @11:12AM (#33406911)
They didn't assume, you did. They showed some real data and you reacted emotionally.
Re:Protobuf-ES: The Protocol Buffers TypeScript/JavaScript r... by dekhn on Monday October 31, 2022 @11:20AM (#33407053)
If there's a JSON parser faster than a PB parser (for the same underlying data content) it just means the JSON parser was optimized more. By every rule in computing, PB parsing is far faster than JSON for every use case for a simple reason: the messages use less RAM, and therefore, moving the data into the processor and decoding it takes less time.
Re:Protobuf-ES: The Protocol Buffers TypeScript/JavaScript r... by patmorgan23 on Monday October 31, 2022 @11:50AM (#33407518)
Theoretical performance doesn't matter in UX, only real world. Yes conceptually it's possible to make protobuffs faster than json, but someone still has to build that. Fast native json parsers already exist, that's the benchmark protobuffs has to beat significantly to make the worse DX worth it.
Re:Protobuf-ES: The Protocol Buffers TypeScript/JavaScript r... by rad_gruchalski on Monday October 31, 2022 @08:56PM (#33415621)
I believe the answer is „it depends”: https://medium.com/aspecto/protobuf-js-vs-json-stringify-per....
Re:Protobuf-ES: The Protocol Buffers TypeScript/JavaScript r... by throw827474737 on Monday November 07, 2022 @04:14AM (#33503304)
yes, sure it depends on the implementation, as the poster above said. You need to compare similarly optimized implementstions.. but really: no surprise?!?