Skip to content

Commit

Permalink
jemalloc
Browse files Browse the repository at this point in the history
  • Loading branch information
dagou committed Sep 24, 2024
1 parent e4b4849 commit f962244
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ regex = "1.5.4"
flate2 = "1.0"
dashmap = { version = "6.0.1", features = ["rayon"] }
num_cpus = "1.13.1"

[target.'cfg(not(target_env = "msvc"))'.dependencies]
jemallocator = "0.5.4"

[dev-dependencies]
Expand Down
1 change: 1 addition & 0 deletions src/bin/kun.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ use kun_peng::utils::find_files;
use std::path::PathBuf;
use std::time::Instant;

#[cfg(not(target_env = "msvc"))]
#[global_allocator]
static GLOBAL: jemallocator::Jemalloc = jemallocator::Jemalloc;

Expand Down

0 comments on commit f962244

Please sign in to comment.