#global-allocator #mi-malloc #alloc #memory #globalalloc

nightly mimalloc-rs

This crate adds if-else expression into your constant functions

1 unstable release

0.1.0 Jun 23, 2019

#6 in #globalalloc

24 downloads per month

MIT license

4KB

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));
}

Dependencies

~42KB