From af72a9c6576cab16128a89d3c9cd5f57cd0d2504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 19 May 2023 15:10:33 +0200 Subject: Revert "perf: use jemalloc as global allocator (#18957)" (#19187) This reverts commit 798c1ad0f1de80ff0e7196b6140a3f74e31fe111. Reverting because this change caused a spike in memory usage, but we can't fully realise gains from lower GC pressure from more optimal malloc/ free provided by "jemalloc". We might revisit the topic in future. --- cli/Cargo.toml | 3 --- cli/main.rs | 7 ------- 2 files changed, 10 deletions(-) (limited to 'cli') diff --git a/cli/Cargo.toml b/cli/Cargo.toml index b1da79b82..59cabd915 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -120,9 +120,6 @@ winapi = { workspace = true, features = ["knownfolders", "mswsock", "objbase", " [target.'cfg(unix)'.dependencies] nix.workspace = true -[target.'cfg(not(target_env = "msvc"))'.dependencies] -tikv-jemallocator.workspace = true - [dev-dependencies] deno_bench_util.workspace = true dotenv = "=0.15.0" diff --git a/cli/main.rs b/cli/main.rs index 031ab07e0..73820cb93 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -26,13 +26,6 @@ mod version; mod watcher; mod worker; -#[cfg(not(target_env = "msvc"))] -use tikv_jemallocator::Jemalloc; - -#[cfg(not(target_env = "msvc"))] -#[global_allocator] -static GLOBAL: Jemalloc = Jemalloc; - use crate::args::flags_from_vec; use crate::args::DenoSubcommand; use crate::args::Flags; -- cgit v1.2.3