News for hackers. Stuff that matters.
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.
Re:Decrypting Blind's Encrypted API by kccqzy on Sunday March 22, 2020 @04:33PM (#22658373)
Right. Because protobuf parsing is not built into the browser, you have to add the time it takes to transfer protobuf code as well.
Re:Decrypting Blind's Encrypted API by fastball on Monday March 23, 2020 @04:12AM (#22662063)
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.