system-mimalloc

Crates.iosystem-mimalloc
lib.rssystem-mimalloc
version
sourcesrc
created_at2024-12-11 15:44:30.682895
updated_at2024-12-11 15:54:35.030951
descriptionUse the system's shared mimalloc library as allocator
homepage
repositoryhttps://github.com/Kijewski/system-mimalloc
max_upload_size
id1480210
Cargo.toml error:TOML parse error at line 20, column 1 | 20 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
René Kijewski (Kijewski)

documentation

README

system-mimalloc – use the system's shared mimalloc library as allocator

GitHub Workflow Status Crates.io docs.rs Minimum supported Rust version: 1.38 License: MIT-0

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
Commit count: 3

cargo fmt