system-mimalloc 1.0.0

Use the system's shared mimalloc library as allocator
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented0 out of 2 items with examples
  • Size
  • Source code size: 15.09 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 78.93 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Kijewski

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