mimalloc-rs

Crates.iomimalloc-rs
lib.rsmimalloc-rs
version0.1.0
sourcesrc
created_at2019-06-23 07:13:44.564069
updated_at2019-06-23 07:13:44.564069
descriptionThis crate adds if-else expression into your constant functions
homepage
repositoryhttps://github.com/playXE/mimalloc-rs
max_upload_size
id142953
size4,225
playX (playXE)

documentation

README

mimalloc-rs

mimalloc bindings for Rust.

Using as global allocator:

#[global_allocator]
static A: mimalloc_rs::MiMalloc = mimalloc_rs::MiMalloc;


fn main() {
    let mut v = Vec::with_capacity(256);

    for _ in 0..100 {
        v.push(String::from("wow"));
    }
    v.iter().for_each(|x| println!("{}",x));
}

Commit count: 2

cargo fmt