feat(hotpath): use mimalloc in counting allocator

This commit is contained in:
houseme
2026-08-01 01:53:07 +08:00
parent db8039dece
commit a4fe30f933
+2 -1
View File
@@ -14,7 +14,8 @@
#[cfg(all(feature = "hotpath", feature = "hotpath-alloc"))]
#[global_allocator]
static GLOBAL: hotpath::CountingAllocator = hotpath::CountingAllocator::new();
static GLOBAL: hotpath::CountingAllocator<mimalloc::MiMalloc> =
hotpath::CountingAllocator::new();
#[cfg(not(all(feature = "hotpath", feature = "hotpath-alloc")))]
#[global_allocator]