Skip to content

Commit

Permalink
feat: add mimalloc
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Oct 25, 2023
1 parent 4dcabf9 commit 4072d8e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
20 changes: 20 additions & 0 deletions server/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ api = { path = "api" }
dotenv = "0.15.0"
env_logger = "0.10.0"
log = "0.4.20"
mimalloc = "0.1.39"
4 changes: 4 additions & 0 deletions server/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#[cfg(target_env = "gnu")]
#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;

fn main() {
dotenv::from_filename(std::env::var("ENV").unwrap_or(".env".to_string())).ok();

Expand Down

0 comments on commit 4072d8e

Please sign in to comment.