A bucket allocation implementation in pure rust
Find a file
2025-02-14 05:46:22 +01:00
src Initial commit; release v0.1.0 2025-02-14 05:46:22 +01:00
.gitignore Initial commit; release v0.1.0 2025-02-14 05:46:22 +01:00
Cargo.lock Initial commit; release v0.1.0 2025-02-14 05:46:22 +01:00
Cargo.toml Initial commit; release v0.1.0 2025-02-14 05:46:22 +01:00
LICENSE Initial commit; release v0.1.0 2025-02-14 05:46:22 +01:00
readme.md Initial commit; release v0.1.0 2025-02-14 05:46:22 +01:00
rust-toolchain.toml Initial commit; release v0.1.0 2025-02-14 05:46:22 +01:00

bucket-alloc

A bucket allocator implemented in pure rust.

License

This project is licensed under AGPL3.0-only; for more details see the LICENSE file.

Usage

In order to work, the allocator needs another one to supply underlaying memory for the allocator to create buckets to place pebbles (allocations) into.

static SYS_ALLOC: std::alloc::System = std::alloc::System;
static BUCK_ALLOC: std::sync::LazyLock<BucketAlloc<std::alloc::System>> =
    std::sync::LazyLock::new(|| BucketAlloc::new(SYS_ALLOC));

Thanks