Specialize SmallVec<[u8; N]> encode/decode for bulk memcpy
Add `unty::type_equal::<A::Item, u8>()` fast paths to
`turbo_bincode::smallvec::{encode, decode, borrow_decode}`, mirroring
the pattern that bincode's own Vec<T> impls already use. For
SmallVec<[u8; N]>, this replaces N individual encode/decode calls with
a single bulk writer.write()/reader.read() (memcpy).
Co-Authored-By:
Claude <noreply@anthropic.com>
Showing
Please
register
or
sign in
to comment