#byte #compact #mutable #small #memory

compact_bytes

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

4 releases

0.1.3 Jun 7, 2024
0.1.2 May 31, 2024
0.1.1 Nov 10, 2023
0.1.0 Oct 31, 2023

#800 in Encoding

Download history 1535/week @ 2024-12-15 692/week @ 2024-12-22 873/week @ 2024-12-29 1692/week @ 2025-01-05 2406/week @ 2025-01-12 2038/week @ 2025-01-19 2388/week @ 2025-01-26 4054/week @ 2025-02-02 3375/week @ 2025-02-09 1836/week @ 2025-02-16 3205/week @ 2025-02-23 2607/week @ 2025-03-02 2195/week @ 2025-03-09 2758/week @ 2025-03-16 1942/week @ 2025-03-23 1859/week @ 2025-03-30

8,823 downloads per month
Used in 7 crates (via merde_core)

MIT/Apache

39KB
676 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

~135–355KB