cabo / cbor-ruby

CBOR (RFC 7049) extension for Ruby
45 stars 12 forks source link

Support for string references. #1

Open svyatogor opened 10 years ago

svyatogor commented 10 years ago

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.

cabo commented 10 years ago

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.