#byte #memory #compact #mutable #small #borrow

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

#622 in Encoding

Download history 2499/week @ 2024-07-26 3592/week @ 2024-08-02 3426/week @ 2024-08-09 3242/week @ 2024-08-16 3097/week @ 2024-08-23 3044/week @ 2024-08-30 2527/week @ 2024-09-06 2866/week @ 2024-09-13 2160/week @ 2024-09-20 2057/week @ 2024-09-27 2945/week @ 2024-10-04 2867/week @ 2024-10-11 2725/week @ 2024-10-18 2828/week @ 2024-10-25 2384/week @ 2024-11-01 2912/week @ 2024-11-08

11,377 downloads per month
Used in 6 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

~140–380KB