Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bastion-rs/allocator-suite
Allocator Suite which contains various allocators for workload-specific allocation.
https://github.com/bastion-rs/allocator-suite
allocator bastion rust
Last synced: 3 months ago
JSON representation
Allocator Suite which contains various allocators for workload-specific allocation.
- Host: GitHub
- URL: https://github.com/bastion-rs/allocator-suite
- Owner: bastion-rs
- Created: 2019-11-02T14:12:07.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T21:01:44.000Z (over 3 years ago)
- Last Synced: 2024-04-12T14:59:38.636Z (7 months ago)
- Topics: allocator, bastion, rust
- Language: Rust
- Homepage:
- Size: 251 KB
- Stars: 14
- Watchers: 4
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Allocator Suite
This crate is mostly rewritten version of `context-allocator` crate.
It contains better NUMA-aware global allocator with hygienic macros.
Contains better likelihood paths and faster execution paths.## Usage
```rust
#![feature(allocator_api)]
#![feature(extern_types)]
#![feature(core_intrinsics)]
#![feature(libstd_sys_internals)]
#![feature(thread_local)]
#![feature(const_fn)]// Allocator generator macro
use allocator_suite::switchable_allocator;// General imports
use allocator_suite::adaptors::prelude::*;
use std::alloc::System;switchable_allocator!(
application_allocator,
BumpAllocator>,
MultipleBinarySearchTreeAllocator,
GlobalAllocToAllocatorAdaptor,
GlobalAllocToAllocatorAdaptor(System)
);
```