#arena #rustc-auto-publish #object #pointers #compiler #hold #typed-arena

nightly msiz_rustc-ap-arena

Automatically published version of the package arena in the rust-lang/rust repository from commit 74d5c70b174f06843049af2d764ff57ddc81c81c The publishing script for this crate lives at: https://github.com/alexcrichton/rustc-auto-publish

3 stable releases

3.0.0 Sep 11, 2019
2.0.0 Sep 11, 2019
1.0.0 Sep 10, 2019

#2155 in Development tools


Used in 4 crates (via msiz_rustc-ap-syntax_pos)

MIT/Apache

415KB
10K SLoC

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 TypedArena, a simple arena that can only hold objects of a single type.

Dependencies

~4.5MB
~79K SLoC