Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add arena allocators #129

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions data/crates.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,22 @@
"notes": "Stack allocated arrays in 100% safe Rust code but requires items to implement the Default trait."
}]
},
{
"name": "Arena allocators",
"recommendations": [{
"name": "bumpalo",
"notes": "Fast \"bump allocator\", ideal for heterogeneous contents and short-lived objects, with the caveat that it only allows for cycles if you don't need destructors to run."
}, {
"name": "typed-arena",
"notes": "Straightforward, single-type arena allocator in Rust that supports efficient object creation and can handle cyclic references within its stored data."
}, {
"name": "slotmap",
"notes": "Unordered map-like data structure, useful for managing self-referential data through generational indexing; ensures keys remain valid even after removals."
}, {
"name": "slab",
"notes": "Offers pre-allocated storage for a single, uniform data type, minimizing memory fragmentation and optimizing efficiency by returning reusable keys upon insertion."
}]
},
{
"name": "HTTP Requests",
"notes": "See the HTTP section below for server-side libraries",
Expand Down