#arena #allocator #arena-allocation #pointers #object #com #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

#578 in Memory management


Used in ra-ap-rustc_data_structur…

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

~73KB