Crates.io | system-mimalloc |
lib.rs | system-mimalloc |
version | 1.0.1 |
created_at | 2024-12-11 15:44:30.682895+00 |
updated_at | 2024-12-11 15:54:35.030951+00 |
description | Use the system's shared mimalloc library as allocator |
homepage | |
repository | https://github.com/Kijewski/system-mimalloc |
max_upload_size | |
id | 1480210 |
size | 15,729 |
system-mimalloc
– use the system's shared mimalloc library as allocatorA 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.
Simply add this line to your main.rs
:
system_mimalloc::use_mimalloc!();
Make sure that mimalloc
is installed, e.g.:
sudo apt install libmimalloc-dev