1 unstable release
0.1.0 | Jun 23, 2019 |
---|
#5 in #globalalloc
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
~44KB