#arena-allocator #compiler #arena-allocation #rustc-auto-publish #automatic #github #repository

nightly rustc-ap-rustc_arena

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

64 major breaking releases

727.0.0 Jul 6, 2021
726.0.0 Jun 29, 2021
725.0.0 Jun 22, 2021
724.0.0 Jun 15, 2021
663.0.0 Jun 9, 2020

#517 in Memory management

Download history 91/week @ 2024-07-19 198/week @ 2024-07-26 85/week @ 2024-08-02 77/week @ 2024-08-09 68/week @ 2024-08-16 67/week @ 2024-08-23 75/week @ 2024-08-30 82/week @ 2024-09-06 116/week @ 2024-09-13 164/week @ 2024-09-20 175/week @ 2024-09-27 134/week @ 2024-10-04 106/week @ 2024-10-11 93/week @ 2024-10-18 85/week @ 2024-10-25 113/week @ 2024-11-01

408 downloads per month
Used in 26 crates (via rustc-ap-rustc_span)

MIT/Apache

465KB
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 several kinds of arena.

Dependencies

~7–16MB
~237K SLoC