News for hackers. Stuff that matters.
Re:Add extra stuff to a “standard” encoding? Sure, why not by nly on Wednesday September 20, 2023 @05:14AM (#37582113)
For a slow protocol like protobufs that is rarely streamed, I agree a length prefix should be the default

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.

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.