serde-rs / bytes

Wrapper types to enable optimized handling of &[u8] and Vec<u8>
Apache License 2.0
306 stars 37 forks source link

Implement support for SmallVec<u8; N>? #13

Open bwoods opened 5 years ago

bwoods commented 5 years ago

…or perhaps a SmallByteBuf<N> wrapper?

nickray commented 4 years ago

Would https://github.com/serde-rs/bytes/pull/18 help?

bwoods commented 4 years ago

The heapless crate is nice, but wouldn't work for my case: almost all of the Vecs being deserialized are under a certain size, but I needed SmallVec’s ability to fall-back to heap allocation for the few special cases.