using mimalloc

This commit is contained in:
2026-08-09 14:09:06 +03:00
parent 230be64d04
commit e2133ce91a
3 changed files with 28 additions and 4 deletions
Generated
+19
View File
@@ -2203,6 +2203,7 @@ dependencies = [
"hex", "hex",
"iced", "iced",
"iced_core", "iced_core",
"mimalloc",
"rand", "rand",
"reqwest", "reqwest",
"rhai", "rhai",
@@ -2378,6 +2379,15 @@ version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981" checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"
[[package]]
name = "libmimalloc-sys"
version = "0.1.49"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a45a52f43e1c16f667ccfe4dd8c85b7f7c204fd5e3bf46c5b0db9a5c3c0b8e9"
dependencies = [
"cc",
]
[[package]] [[package]]
name = "libredox" name = "libredox"
version = "0.1.12" version = "0.1.12"
@@ -2523,6 +2533,15 @@ dependencies = [
"paste", "paste",
] ]
[[package]]
name = "mimalloc"
version = "0.1.52"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2d4139bb28d14ad1facf21d5eb8825051b326e172d216b39f6d31df53cc97862"
dependencies = [
"libmimalloc-sys",
]
[[package]] [[package]]
name = "mime" name = "mime"
version = "0.3.17" version = "0.3.17"
+5 -4
View File
@@ -19,6 +19,7 @@ sha2 = "0.11.0"
tokio = { version = "1.53.1", features = ["rt", "rt-multi-thread", "macros"] } tokio = { version = "1.53.1", features = ["rt", "rt-multi-thread", "macros"] }
hex = "0.4.3" hex = "0.4.3"
zstd = "0.13.3" zstd = "0.13.3"
mimalloc = "0.1.52"
[dev-dependencies] [dev-dependencies]
criterion = "0.8.2" criterion = "0.8.2"
@@ -27,7 +28,7 @@ criterion = "0.8.2"
name = "split_bench" # Имя файла в benches/ без расширения name = "split_bench" # Имя файла в benches/ без расширения
harness = false # Отключаем стандартный тестовый раннер harness = false # Отключаем стандартный тестовый раннер
#[profile.release] [profile.release]
#codegen-units = 1 codegen-units = 1
#lto = true lto = true
#opt-level = 3 opt-level = 3
+4
View File
@@ -1,4 +1,8 @@
//#![windows_subsystem = "windows"] //#![windows_subsystem = "windows"]
use mimalloc::MiMalloc;
#[global_allocator]
static GLOBAL: MiMalloc = MiMalloc;
mod data_provider; mod data_provider;
mod dictionary; mod dictionary;
mod dictionary_test; mod dictionary_test;