[][src]Crate mimalloc

A drop-in global allocator wrapper around the mimalloc allocator. Mimalloc is a general purpose, performance oriented allocator built by Microsoft.


This example is not tested
use mimalloc::MiMalloc;

static GLOBAL: MiMalloc = MiMalloc;

Usage without secure mode

By default this library builds mimalloc in secure mode. This means that heap allocations are encrypted, but this results in a 3% increase in overhead.

To disable secure mode, in Cargo.toml:

This example is not tested
mimalloc = { version = "*", default-features = false }



Drop-in mimalloc global allocator.