Re:Add extra stuff to a “standard” encoding? Sure, why not
by tetromino_ on Wednesday September 20, 2023 @08:35AM
(#37583374)
> For a slow protocol like protobufs that is rarely streamed...
In my experience, protobufs are often streamed, especially in the cases where performance matters.
One way to make streaming work is just to allow the length value to be bigger than needed and add a padding scheme at the end of the message. This is overhead free in terms of processing time since fields must be decoded sequentially anyway.