From e1231deba7ea52aaa77a4ec621b6735db4ea0639 Mon Sep 17 00:00:00 2001 From: euzu <33094714+euzu@users.noreply.github.com> Date: Thu, 29 Jan 2026 10:11:39 +0100 Subject: [PATCH] Disabled mimalloc (#549) Disabled mimalloc --- Cargo.lock | 20 -------------------- backend/Cargo.toml | 5 ++--- backend/src/main.rs | 6 +++--- 3 files changed, 5 insertions(+), 26 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 59388ec38..f2ceb6b6a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2440,16 +2440,6 @@ version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f9fbbcab51052fe104eb5e5d351cf728d30a5be1fe14d9be8a3b097481fb97de" -[[package]] -name = "libmimalloc-sys" -version = "0.1.44" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "667f4fec20f29dfc6bc7357c582d91796c169ad7e2fce709468aefeb2c099870" -dependencies = [ - "cc", - "libc", -] - [[package]] name = "libredox" version = "0.1.12" @@ -2548,15 +2538,6 @@ dependencies = [ "libc", ] -[[package]] -name = "mimalloc" -version = "0.1.48" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1ee66a4b64c74f4ef288bcbb9192ad9c3feaad75193129ac8509af543894fd8" -dependencies = [ - "libmimalloc-sys", -] - [[package]] name = "mime" version = "0.3.17" @@ -4646,7 +4627,6 @@ dependencies = [ "lol_html", "lz4_flex", "memmap2", - "mimalloc", "mime", "mime_guess", "notify", diff --git a/backend/Cargo.toml b/backend/Cargo.toml index 26cd9e012..8050de1be 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -80,9 +80,8 @@ mime_guess = "2" libc = "0.2" [target.'cfg(target_os = "windows")'.dependencies] winapi = { version = "0.3", features = ["psapi", "minwindef", "processthreadsapi"] } -[target.'cfg(target_os = "linux")'.dependencies] -mimalloc = "0.1" - +#[target.'cfg(target_os = "linux")'.dependencies] +#mimalloc = "0.1" #[target.'cfg(not(target_env = "msvc"))'.dependencies] #tikv-jemallocator = "0.6" # tikv-jemallocator = { version = "*", features = ["profiling", "unprefixed_malloc_on_supported_platforms"] } diff --git a/backend/src/main.rs b/backend/src/main.rs index 65ac33481..762ed602f 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -4,9 +4,9 @@ #![allow(clippy::return_self_not_must_use)] #![allow(clippy::missing_errors_doc)] -#[cfg(target_os = "linux")] -#[global_allocator] -static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc; +// #[cfg(target_os = "linux")] +// #[global_allocator] +// static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc; // #[cfg(not(target_env = "msvc"))] // #[global_allocator] // static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;