2 ms·
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 differe
by fastball 7y ago
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.
- kccqzy 7y agoRight. Because protobuf parsing is not built into the browser, you have to add the time it takes to transfer protobuf code as well.
- fastball 7y agoBut 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.