News for hackers. Stuff that matters.
Re:Don't Use Protobuf for Telemetry by kentonv on Wednesday December 30, 2020 @06:15PM (#25587463)
The bookkeeping is not that hard... the pointer is null until it is first allocated, then it remains non-null, while a separate boolean indicates whether the sub-message is actually present in the parent.

The big problem is bloat in memory usage if you parse many differently-shaped messages, requiring the app to implement hacks like only reusing a particular object a certain number of times.

There are no comments on this comment yet.