cbor icon indicating copy to clipboard operation
cbor copied to clipboard

feature: implement stringref extension

Open leventov opened this issue 4 years ago • 1 comments

Is your feature request related to a problem? Improve compression when there are a lot of repeated tags.

Describe the solution you'd like http://cbor.schmorp.de/stringref

leventov avatar Apr 29 '21 05:04 leventov

about a year ago I also though about adding this ... in my case compression factor would be huge. I couldnt find a way to add this in own tags, because I need the context of the current encoders/decoders ... something that would lead me to the currently valid lookup map. And using a singleton would just kill concurrency / performance.

any chance to enhance UnmarshalCBOR([]byte) to UnmarshalCBOR(context, []byte) ??

a-hennig avatar Sep 27 '21 17:09 a-hennig