News for hackers. Stuff that matters.
Re:Post-REST by XCSme on Monday November 19, 2018 @02:54PM (#18489210)
Protobuf is really slow with encoding/decoding and also does unnecessary validation of the data. If you are just starting out with binary data serialization I recommend FlatBuffers instead of protobuf.
Re:Post-REST by Matthias247 on Monday November 19, 2018 @08:27PM (#18491214)
Really slow compared to what? Json? A handwritten binary encoding? For most use cases protobuf should be fast enough. I also don’t understand the unnecessary validation part. If you receive data over the network you should always validate it. Even if it’s from within the same company network
Re:Post-REST by moogly on Tuesday November 20, 2018 @01:29PM (#18496284)
Maybe things have improved since, but the last time I tried FlatBuffers (about 2 years ago), I found the API (generated C#) to create the FlatBuffers cumbersome, inelegant and quite error prone.