perf: add mimalloc

This commit is contained in:
Almaz
2025-08-10 16:47:59 +00:00
committed by GitHub
parent 98ffdd9bf8
commit a34acf92ca
5 changed files with 37 additions and 5 deletions
+8
View File
@@ -70,6 +70,14 @@ use tracing_subscriber::{
layer::SubscriberExt as _, util::SubscriberInitExt as _,
};
#[cfg(all(
feature = "mimalloc",
any(target_arch = "aarch64", target_arch = "x86_64"),
any(target_os = "linux", target_os = "macos", target_os = "windows"),
))]
#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
fn create_logging_filter(
config: &config::Config,
) -> tracing_subscriber::filter::Targets {