… | |
… | |
216 | communication partner supports the value sharing extensions to CBOR |
216 | communication partner supports the value sharing extensions to CBOR |
217 | (L<http://cbor.schmorp.de/value-sharing>), as without decoder support, the |
217 | (L<http://cbor.schmorp.de/value-sharing>), as without decoder support, the |
218 | resulting data structure might be unusable. |
218 | resulting data structure might be unusable. |
219 | |
219 | |
220 | Detecting shared values incurs a runtime overhead when values are encoded |
220 | Detecting shared values incurs a runtime overhead when values are encoded |
221 | that have a reference counter large than one, and might unnecessarily |
221 | that have a reference counter larger than one, and might unnecessarily |
222 | increase the encoded size, as potentially shared values are encoded as |
222 | increase the encoded size, as potentially shared values are encoded as |
223 | shareable whether or not they are actually shared. |
223 | shareable whether or not they are actually shared. |
224 | |
224 | |
225 | At the moment, only targets of references can be shared (e.g. scalars, |
225 | At the moment, only targets of references can be shared (e.g. scalars, |
226 | arrays or hashes pointed to by a reference). Weirder constructs, such as |
226 | arrays or hashes pointed to by a reference). Weirder constructs, such as |