diff --git a/Cargo.toml b/Cargo.toml index 57b18c9..f883fcb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "findlargedir" -version = "0.6.0" +version = "0.6.1" authors = ["Dinko Korunic "] categories = ["command-line-utilities"] description = "find all blackhole directories with a huge amount of filesystem entries in a flat structure" @@ -29,13 +29,13 @@ cfg-if = "1.0" fdlimit = "0.2.1" [target.'cfg(all(target_os = "linux", target_arch = "x86_64"))'.dependencies] -mimalloc = { version = "0.1.39", default-features = false } +tikv-jemallocator = "0.5.4" [target.'cfg(all(target_os = "linux", target_arch = "aarch64"))'.dependencies] -mimalloc = { version = "0.1.39", default-features = false } +tikv-jemallocator = "0.5.4" [target.'cfg(target_os = "macos")'.dependencies] -mimalloc = { version = "0.1.39", default-features = false } +tikv-jemallocator = "0.5.4" [profile.release] lto = true diff --git a/src/main.rs b/src/main.rs index 19798ba..6a657ef 100644 --- a/src/main.rs +++ b/src/main.rs @@ -22,11 +22,11 @@ mod walk; cfg_if! { if #[cfg(all(target_os = "linux", target_arch = "x86_64"))] { - use_mimalloc!(); + use_jemalloc!(); } else if #[cfg(all(target_os = "linux", target_arch = "aarch64"))] { - use_mimalloc!(); + use_jemalloc!(); } else if #[cfg(target_os = "macos")] { - use_mimalloc!(); + use_jemalloc!(); } } @@ -122,11 +122,11 @@ fn main() -> Result<(), Error> { } #[macro_export] -macro_rules! use_mimalloc { +macro_rules! use_jemalloc { () => { - use mimalloc::MiMalloc; + use tikv_jemallocator::Jemalloc; #[global_allocator] - static GLOBAL: MiMalloc = MiMalloc; + static GLOBAL: Jemalloc = Jemalloc; }; }