3 releases (stable)
Uses old Rust 2015
1.0.1 | Dec 11, 2024 |
---|
#200 in Memory management
351 downloads per month
11KB
system-mimalloc
– use the system's shared mimalloc library as allocator
A drop-in global allocator using the system's shared mimalloc library. Mimalloc is a general purpose, performance oriented allocator built by Microsoft.
Probably only useful on Linux.
Use <crates.io/crates/mimalloc> if you want to hard-link
mimalloc
to your program, to have more configuration options, and a higher platform compatibility.
Usage
Simply add this line to your main.rs
:
system_mimalloc::use_mimalloc!();
Requirements
Make sure that mimalloc
is installed, e.g.:
sudo apt install libmimalloc-dev