fix(allocator): switch global allocator from tikv-jemallocator to mimalloc

This commit is contained in:
2026-02-25 00:12:41 +00:00
parent f592bf627f
commit 7e5fe2bec3
6 changed files with 34 additions and 26 deletions

View File

@@ -39,7 +39,7 @@ hyper = { workspace = true }
hyper-util = { workspace = true }
http-body-util = { workspace = true }
bytes = { workspace = true }
tikv-jemallocator = { workspace = true }
mimalloc = { workspace = true }
[dev-dependencies]
rcgen = { workspace = true }

View File

@@ -1,5 +1,5 @@
#[global_allocator]
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
use clap::Parser;
use tracing_subscriber::EnvFilter;