Hi,
just an idea to improve compress ratio. Consider this example:
{
"@context": {
"type": "@type"
}
}
{
"@context": "...",
"type": ["type-id1"]
}
the compressed output by this library is:
[{ 0: https...context.jsonld, 101: [type-id1] }]
101 says it's an array, and there is no need to use CBOR array marker array(1). It could be compressed as [{ 0: https...context.jsonld, 101: type-id1 }] saving one byte.
Hi,
just an idea to improve compress ratio. Consider this example:
{ "@context": { "type": "@type" } }{ "@context": "...", "type": ["type-id1"] }the compressed output by this library is:
101says it's an array, and there is no need to use CBOR array markerarray(1). It could be compressed as[{ 0: https...context.jsonld, 101: type-id1 }]saving one byte.