Comment by tyingq

5 years ago

Not having to look at every byte to split out the contents.

Right, a protobuf message that consists of a single 100MB string will be "decoded" dramatically faster than 2GB/s, because you only need visit the tag and the length and store the address and length, aliasing the input.

It's really quite impossible to discuss data encoding performance outside of a given schema.