Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bastion-rs/numanji

Local-affinity first NUMA-aware allocator with optional fallback.
https://github.com/bastion-rs/numanji

allocator globalallocator mmap numa numa-aware rust

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

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.

```rust
// 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::::with_capacity(1234);
}
```