Skip to content

Commit

Permalink
feat: mimalloc for global allocator;
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr.Panda committed Jan 23, 2023
1 parent ee8e0d3 commit df8c16d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions turn-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ axum = "0.6.1"
toml = "0.5.10"
tower = "0.4"
http = "0.2.8"
mimalloc = "0.1.34"
6 changes: 6 additions & 0 deletions turn-server/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
use mimalloc::MiMalloc;

// use mimalloc for global.
#[global_allocator]
static GLOBAL: MiMalloc = MiMalloc;

mod server;
mod config;
mod api;
Expand Down

0 comments on commit df8c16d

Please sign in to comment.