bytes icon indicating copy to clipboard operation
bytes copied to clipboard

Implement support for SmallVec<u8; N>?

Open bwoods opened this issue 6 years ago • 2 comments

…or perhaps a SmallByteBuf<N> wrapper?

bwoods avatar Jun 05 '19 05:06 bwoods

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

nickray avatar Dec 30 '19 17:12 nickray

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.

bwoods avatar Dec 30 '19 19:12 bwoods