Use mimalloc instead of system allocator

This commit is contained in:
Joakim Frostegård 2020-04-06 02:42:23 +02:00
parent d601025286
commit 9d66a5e7d0
4 changed files with 44 additions and 0 deletions

View file

@ -21,6 +21,7 @@ name = "plot_pareto"
bittorrent_udp = { path = "../bittorrent_udp" }
dashmap = "3"
indexmap = "1"
mimalloc = "0.1"
net2 = "0.2"
rand_distr = "0.2"
plotly = "0.4"

View file

@ -1,5 +1,10 @@
use aquatic;
#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
fn main(){
aquatic::run();
}

View file

@ -13,6 +13,10 @@ mod connect;
mod scrape;
#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
fn main(){
connect::bench();