feat: add feature for mimalloc

This commit is contained in:
2025-03-10 20:27:20 -04:00
parent 21798fa2a9
commit 553465e3b5
3 changed files with 25 additions and 0 deletions

View File

@@ -33,6 +33,9 @@ use std::{
sync::Arc,
};
#[cfg(feature = "mimalloc")]
#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
type ListenerMap = Arc<RwLock<HashMap<String, Vec<(String, Function)>>>>;