Skip to content

Commit 4ccc1fb

Browse files
committed
feat: switch to mimalloc
1 parent 95f922e commit 4ccc1fb

3 files changed

Lines changed: 24 additions & 0 deletions

File tree

Cargo.lock

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go-runner/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ semver = "1.0.27"
2424
dircpy = "0.3.19"
2525
rayon = "1"
2626
once_cell = "1.21.3"
27+
mimalloc = "0.1.48"
2728

2829
[dev-dependencies]
2930
divan = { version = "4.1.0", package = "codspeed-divan-compat" }

go-runner/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ pub mod results;
1212
pub mod runner;
1313
pub(crate) mod utils;
1414

15+
#[global_allocator]
16+
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
17+
1518
#[cfg(test)]
1619
mod integration_tests;
1720

0 commit comments

Comments
 (0)