Re:Decrypting Blind's Encrypted API
by fastball on Sunday March 22, 2020 @05:31AM
(#22653793)
Right, but the bottleneck is generally not "how long it takes to parse the payload". For anything other than MB of data, I doubt you'll notice much of a difference between parsing JSON and flatbuffers. The bottleneck is how large and how long it takes when sending it over the wire.
[ Parent
| on HN ]
Right. Because protobuf parsing is not built into the browser, you have to add the time it takes to transfer protobuf code as well.
But transferring the parser happens once, transferring JSON happens every time.
Really depends on the use case I guess. But any situation where I'm using JSON arrays instead of keyed objects for efficiency reasons is probably a situation where flatbuffers makes just as much (if not more) sense.