A drop-in global allocator wrapper around the mimalloc allocator. Mimalloc is a general purpose, performance oriented allocator built by Microsoft.
```rust use mimalloc::MiMalloc;
static GLOBAL: MiMalloc = MiMalloc; ```
By default this library builds mimalloc in safe-mode. This means that heap allocations are encrypted, but this results in a 3% increase in overhead.
In Cargo.toml
:
rust
[dependencies]
mimalloc = { version = "*", features = ["no_secure"] }