dudy_malloc/
lib.rs

1//! This crate configures memory allocator.
2//!
3//! The swc crates related to the  node binding should depend on this crate.
4
5#[cfg(not(target_os = "linux"))]
6#[global_allocator]
7static GLOBAL: mimalloc_rust::GlobalMiMalloc = mimalloc_rust::GlobalMiMalloc;
8
9#[cfg(all(
10    target_os = "linux",
11    target_env = "gnu",
12    any(target_arch = "x86_64", target_arch = "aarch64")
13))]
14#[global_allocator]
15static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;