mimalloc2-rust

Crates.iomimalloc2-rust
lib.rsmimalloc2-rust
version0.3.2
sourcesrc
created_at2024-02-26 10:32:40.414513
updated_at2024-06-04 21:59:04.244773
descriptionthe fork of the best binding for mimalloc in rust
homepage
repositoryhttps://git.sr.ht/~alip/mimalloc2-rust
max_upload_size
id1153323
size18,142
Morgane Glidic (sardemff7)

documentation

README

The Best and Highest-Leveled and Newest binding for MiMalloc Ever Existed in Rust

mimalloc 2.1.7 stable

Why create this

  • in repo https://github.com/LemonHX/mimalloc-rust/pulls there're many pull requests open for a long time, in other words it's garbage. Once these pull requests are merged, I am going to yank this crate.
  • in repo https://github.com/purpleprotocol/mimalloc_rust i didn't see any data types and it neither has all the functionalities which mimalloc has provided, in other words it's garbage.

Usage

first add to dependencies

[dependencies]
mimalloc2-rust = "0.3"

then set the global allocator

use mimalloc2_rust::*;

#[global_allocator]
static GLOBAL_MIMALLOC: GlobalMiMalloc = GlobalMiMalloc;
Commit count: 0

cargo fmt