#arena #arena-allocation #allocator #com #object #pointers #rustc-arena

nightly ra-ap-rustc_arena

Automatically published version of the package rustc_arena in the rust-lang/rust repository from commit 5113ed28ea1451a13eae3a05dca0dbabfd56f587 The publishing script for this crate lives at: https://github.com/rust-analyzer/rustc-auto-publish

19 breaking releases

0.28.0 Jan 5, 2024
0.26.0 Jan 5, 2024
0.24.0 Dec 26, 2023
0.20.0 Nov 21, 2023

#449 in Memory management

Download history 18/week @ 2024-09-22 3/week @ 2024-09-29

575 downloads per month
Used in 2 crates

MIT/Apache

33KB
645 lines

The arena, a fast but limited type of allocator.

Arenas are a type of allocator that destroy the objects within, all at once, once the arena itself is destroyed. They do not support deallocation of individual objects while the arena itself is still alive. The benefit of an arena is very fast allocation; just a pointer bump.

This crate implements several kinds of arena.

Dependencies

~68KB