2 ms·
> Protobuf can support zero-copy of strings and byte arrays embedded in the message. Just to be clear, even this more limited notion of "zero copy" isn't curre
by quietbritishjim 6y ago
> Protobuf can support zero-copy of strings and byte arrays embedded in the message.
Just to be clear, even this more limited notion of "zero copy" isn't currently supported in the open-sourced version of protobuf. It is supported in the internal Google version, which is presumably what you're thinking of. There is an open issue [1] tracking the possibility of making it available in the open source version too.
[1] https://github.com/protocolbuffers/protobuf/issues/1896 https://github.com/protocolbuffers/protobuf/issues/1896