numanji

Crates.ionumanji
lib.rsnumanji
version0.1.5
sourcesrc
created_at2019-11-03 18:30:48.146229
updated_at2020-08-12 08:58:04.528456
descriptionLocal-affinity first NUMA-aware allocator with optional fallback
homepagehttps://github.com/bastion-rs/numanji
repositoryhttps://github.com/bastion-rs/numanji
max_upload_size
id177779
size12,008
Theo M. Bulut (vertexclique)

documentation

https://docs.rs/numanji

README


Local-affinity first NUMA-aware allocator with optional fallback.

This crate supplies NUMA-aware local policy enabled allocation.

When using autoselect

Fallback system is triggered with autoselect. If system is not supporting NUMA-aware allocation it falls back to Jemalloc.

When using NUMA-aware

If autoselect is not used, memmap fallback will be triggered with default system page size and it will be used as allocator.

// Allocator generator macro
use numanji::*;

// Do autoselect for allocator
autoselect!();

fn main() {
    // Allocated by Numanji based on your Numa availability on your system.
    let _vec = Vec::<usize>::with_capacity(1234);
}
Commit count: 25

cargo fmt