Dodgems - A simple bump allocator library
This crate provides a fast, single-threaded bump allocator for use in performance sensitive contexts.
⚠️ It is not a general purpose allocator: you need to have another (supposedly slower) allocator to back it up. By default, it is the global allocator.
It can be used for quick and dirty allocation in a loop, where you know memory can be reclaimed all at once at the end.
Example
use BumpCar;
let mut bumpcar = new.unwrap; // 1kB capacity
for i in 0..100
drop
Until the allocator_api is stable, this crate requires nightly.