by shdh · 3y ago · 0 comments
* Specification of the number of bits I want to cap out a field at during serialization, ie: `int` that only uses 3 bits.
* Delta encoding for serialization and deserialization, this would further decrease the size of each message if there is an older message that I can use as the initial message to delta encode/decode from.
By delta compression you mean across messages? Yeah I've never seen that but it's hard to imagine a scenario where it would be useful and worth the insane complexity.
CBOR approximates this, since it has several different widths for integers.
> an older message that I can use as the initial message to delta encode/decode from.
General-purpose compression on the encoded stream would do something toward this goal, but some protocol buffers library implementations offer merge functions. The question is what semantics of "merge" you expect. For repeated fields do you want to append or clobber?
And if someone is asking for exact bit sizes and deltas, they probably don't want a format that embeds every key in every message.
[1] http://zserio.org/doc/ZserioLanguageOverview.html#bit-field-...