mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
Use mimalloc instead of system allocator
This commit is contained in:
parent
d601025286
commit
9d66a5e7d0
4 changed files with 44 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
use aquatic;
|
||||
|
||||
|
||||
#[global_allocator]
|
||||
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
||||
|
||||
|
||||
fn main(){
|
||||
aquatic::run();
|
||||
}
|
||||
|
|
@ -13,6 +13,10 @@ mod connect;
|
|||
mod scrape;
|
||||
|
||||
|
||||
#[global_allocator]
|
||||
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
||||
|
||||
|
||||
fn main(){
|
||||
connect::bench();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue