3 ms·
> `int` that only uses 3 bits. CBOR approximates this, since it has several different widths for integers. > an older message that I can use as the initial me
by jeffbee 3y ago
> `int` that only uses 3 bits.
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?
- Dylan16807 3y agoCBOR has different integer widths, yes, but 1/2/3/5/9 bytes is not particularly flexible. 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.