From 93eb23ee2008d3e10b85a99c5565e51c7684bc75 Mon Sep 17 00:00:00 2001 From: i18n-now Date: Fri, 5 Apr 2024 00:00:22 +0800 Subject: [PATCH] Update Cargo.toml , mimalloc speedup By default this library builds mimalloc in secure mode. This means that heap allocations are encrypted, but this results in a 3% increase in overhead. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b88f3917..2805f059 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -47,7 +47,7 @@ serde = { version = "1", features = ["derive"] } serde_json = "1" # malloc -mimalloc = { version = "0.1", optional = true } +mimalloc = { version = "0.1", optional = true, default-features = false } [target.'cfg(not(target_env = "msvc"))'.dependencies] jemallocator = { version = "0.5", optional = true }