feat: add feature for mimalloc

This commit is contained in:
2025-03-10 20:27:20 -04:00
parent c2d1b415aa
commit 6600edabe6
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)>>>>;