malloc-best-effort 0.1.0

A Rust wrapper over Google's TCMalloc and Microsoft's MIMalloc memory allocators
Documentation

Best effort memory allocator

Latest Version Documentation

GlobalAllocator implementation best suited for target platform

It uses tcmalloc-better on linux (x86_64, aarch64) and mimalloc on other platforms. Both wrappers are based on general-purpose, performance-oriented allocators built by Google and Microsoft respectively.

Usage

use malloc_best_effort::BEMalloc;

#[global_allocator]
static GLOBAL: BEMalloc = BEMalloc::new();

Requirements

A C/C++ compilers are required for building allocator with cargo.