#arena #memory #bump #allocator

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

#207 in Memory management

Download history 38/week @ 2023-11-03 22/week @ 2023-11-10 4/week @ 2023-11-17 12/week @ 2023-11-24 5/week @ 2023-12-01 9/week @ 2023-12-08 3/week @ 2023-12-15 6/week @ 2023-12-22 3/week @ 2024-01-05 3/week @ 2024-01-26 3/week @ 2024-02-02 8/week @ 2024-02-09 54/week @ 2024-02-16

68 downloads per month

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