#arena-allocator #arena #allocator #bump #memory

no-std rc_bump

An arena for heterogeneous types and without lifetimes

3 releases

0.1.2 Nov 9, 2023
0.1.1 Nov 9, 2023
0.1.0 Nov 9, 2023

#722 in Memory management

MIT/Apache

170KB
348 lines

An intermediate between Bumpalo and Rc, by sharing the reference counter for a whole chunk of memory, rc_bump allows you to have better performances than Rc without the hassle of bumpalo's lifetimes.

Benchmarks

Benchmark line plot showing this crate performances to be better than a standard RC but worse than bumpalo's.


lib.rs:

This crate offers fast and locality-aware allocation similar to bumpalo but without using lifetimes, relying instead on reference counting.

No runtime deps