bump-allocator 0.1.2

A high performance `#[global_allocator] implementation using the bump-pointer allocation algorithm
Documentation
  • Coverage
  • 0%
    0 out of 3 items documented0 out of 1 items with examples
  • Size
  • Source code size: 7.48 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.34 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • wenyuzhao/bump-allocator-rs
    3 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • wenyuzhao

bump-allocator-rs

A high performance #[global_allocator] implementation using the bump-pointer allocation algorithm

Usage

As a rust custom global allocaor:

extern crate bump_allocator;

#[global_allocator]
static GLOBAL: bump_allocator::BumpPointer = bump_allocator::BumpPointer;

fn main() {
    // Heap allocations here...
    let _boxed = Box::new(233);
}

As a malloc() replacement:

cargo build --release
LD_PRELOAD=target/release/libbump_allocator.so your_program
# e.g.
#   LD_PRELOAD=target/release/libbump_allocator.so ls ~