#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

#356 in Memory management

Download history 98/week @ 2024-06-17 91/week @ 2024-06-24 117/week @ 2024-07-01 73/week @ 2024-07-08 135/week @ 2024-07-15 60/week @ 2024-07-22 219/week @ 2024-07-29 83/week @ 2024-08-05 70/week @ 2024-08-12 54/week @ 2024-08-19 87/week @ 2024-08-26 70/week @ 2024-09-02 120/week @ 2024-09-09 93/week @ 2024-09-16 168/week @ 2024-09-23 187/week @ 2024-09-30

576 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
~233K SLoC