#byte #memory #compact #mutable #small

compact_bytes

A memory efficient bytes container that transparently stores bytes on the stack, when possible

2 releases

0.1.1 Nov 10, 2023
0.1.0 Oct 31, 2023

#810 in Encoding

Download history 1027/week @ 2023-12-24 1576/week @ 2023-12-31 2976/week @ 2024-01-07 2734/week @ 2024-01-14 2826/week @ 2024-01-21 2662/week @ 2024-01-28 3129/week @ 2024-02-04 3419/week @ 2024-02-11 3070/week @ 2024-02-18 3451/week @ 2024-02-25 3086/week @ 2024-03-03 2438/week @ 2024-03-10 2044/week @ 2024-03-17 2183/week @ 2024-03-24 2363/week @ 2024-03-31 2254/week @ 2024-04-07

8,933 downloads per month

MIT/Apache

38KB
659 lines

compact_bytes

A memory efficient bytes container that can store up to 23 bytes on the stack.




Note from the Maintainer

This crate was mostly developed for Materialize out of a need for a more compact bytes container. It entirely borrows implementation from compact_str which has been thoughtfully maintained over the past few years by a number of dedicated contributors, including:

For now this repository exists separately from compact_str because it's easier to get started that way. But the plan is to eventually merge the two.

Dependencies

~150–400KB