1 2 3 4 5 6 7 8 9 10 11
//! This crate configures memery allocator. //! //! The swc crates related to the node binding should depend on this crate. #[cfg(all(unix, not(target_env = "musl"), not(target_arch = "aarch64")))] #[global_allocator] static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc; #[cfg(windows)] #[global_allocator] static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;