https://github.com/kijewski/system-mimalloc
https://github.com/kijewski/system-mimalloc
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kijewski/system-mimalloc
- Owner: Kijewski
- License: mit-0
- Created: 2024-12-11T15:28:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-11-21T02:12:16.000Z (6 months ago)
- Last Synced: 2025-11-23T15:16:38.352Z (6 months ago)
- Language: Rust
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# `system-mimalloc` – use the system's shared mimalloc library as allocator
[](https://github.com/Kijewski/system-mimalloc/actions/workflows/ci.yml)
[](https://crates.io/crates/system-mimalloc)
[](https://docs.rs/system-mimalloc/)

[](https://github.com/Kijewski/system-mimalloc/blob/v1.0.0/LICENSE.md "License: MIT-0")
A drop-in global allocator using the system's shared [mimalloc](https://github.com/microsoft/mimalloc) library.
Mimalloc is a general purpose, performance oriented allocator built by Microsoft.
Probably only useful on Linux.
Use <[crates.io/crates/mimalloc](https://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`:
```rust
system_mimalloc::use_mimalloc!();
```
# Requirements
Make sure that `mimalloc` is installed, e.g.:
```sh
sudo apt install libmimalloc-dev
```