ipld / specs

Content-addressed, authenticated, immutable data structures
Other
592 stars 108 forks source link

feat: more compact representation for nested bytes #287

Closed mikeal closed 3 years ago

mikeal commented 3 years ago

This allows for a more compact representation of nested inline bytes in a list. Since you don’t need the length of an inlined binary value this means we can drop the list and int encoding when we inline bytes.

mikeal commented 3 years ago

it’s getting more complicated in the schema but the actual encoded representation is still pretty simple. i’ll want to adopt this change in my implementation in order to understand any complexity cost though.