summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/Cargo.toml1
-rw-r--r--engine/src/main.rs4
2 files changed, 5 insertions, 0 deletions
diff --git a/engine/Cargo.toml b/engine/Cargo.toml
index 051797f..b33994d 100644
--- a/engine/Cargo.toml
+++ b/engine/Cargo.toml
@@ -10,6 +10,7 @@ publish = false
[dependencies]
model = {path = "../model"}
parking_lot = "0.12"
+mimalloc = "0.1.39"
[dev-dependencies]
criterion = "0.5" \ No newline at end of file
diff --git a/engine/src/main.rs b/engine/src/main.rs
index 245bd97..8e438fd 100644
--- a/engine/src/main.rs
+++ b/engine/src/main.rs
@@ -1,4 +1,8 @@
use engine::{current_evaluation, CheckersBitBoard, TranspositionTable};
+use mimalloc::MiMalloc;
+
+#[global_allocator]
+static ALLOCATOR: MiMalloc = MiMalloc;
const DEPTH: u8 = 18;