polydawn / refmt

Object mapping for golang.
MIT License
48 stars 14 forks source link

dense encoding of fixed length byte arrays #33

Closed warpfork closed 6 years ago

warpfork commented 6 years ago

Previously, fixed-length typedef'd byte arrays would be encoded arguably correctly, but not densely: the array would serialize in e.g. cbor as roughly twice as many bytes as it should, because the byte type indicator would be prepended to each byte individually, rather than the whole array marked as bytes at once. Now, these types will be turned into tokens of TBytes correctly, and thus serialize appropriately densely.

Unmarshalling has similar fixes.

(@dignifiedquire, I think this fixes the issues you lamented earlier this week.)

warpfork commented 6 years ago

Travis now cancels builds when you push another subsequent commit too fast, and that shows up in github as red failure... even though it did not run. That's cool. Super. Totally what I wanted; semantically super legit. Very meaning. Wow.