cbor-ruby icon indicating copy to clipboard operation
cbor-ruby copied to clipboard

Support for string references.

Open svyatogor opened this issue 12 years ago • 1 comments

Any plans to extend cbor library with support for string references as described here: http://pod.tst.eu/http://cvs.schmorp.de/CBOR-XS/doc/stringref.pod ?

This would be tremendously useful when serialising large arrays of hashes.

svyatogor avatar Jan 11 '14 17:01 svyatogor

Hi Sergey,

yes, I'm keeping track of the tags that are being registered for CBOR and I do plan to implement the more useful ones. Right now the next step is to get a better way of handing encoding options to CBOR.encode (there is an experimental option to transform map keys into symbols, but it might be useful to add many more options). Once that is done, I plan to add options for float size selection, tag usage, circular structures, and stringrefs.

What is the application you have in mind? Knowing that might help shaping the implementation right.

cabo avatar Jan 12 '14 12:01 cabo