slice-arena

Crates.ioslice-arena
lib.rsslice-arena
version1.0.0
sourcesrc
created_at2020-04-10 16:09:36.720469
updated_at2020-04-10 16:09:36.720469
descriptionStore lots of tiny slices with low overhead, in contiguous blocks of memory
homepagehttps://lib.rs/slice-arena
repository
max_upload_size
id228382
size7,032
Kornel (kornelski)

documentation

README

Memory pool for slices and paths

SliceArena can store any number of slices, string slices or paths with minimal overhead even for very short slices.

It allocates contiguous blocks of memory, and frees them all at once when it's dropped.

It's a faster and more efficient option than Box<str>, Rc<String>, etc.

Note that you can't hold an owned SliceArena object in the same struct as slices from the arena, due to borrow checker's "self-referential struct" limitation. Make your constructors take an arena as an argument, by reference.

Commit count: 0

cargo fmt