summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-05-19 15:10:33 +0200
committerGitHub <noreply@github.com>2023-05-19 09:10:33 -0400
commitaf72a9c6576cab16128a89d3c9cd5f57cd0d2504 (patch)
treef345812dedf2098651dacf0c55ad98d1b0b48b39
parent2b92efa64501320955979a92de39c70b6734f835 (diff)
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.
-rw-r--r--Cargo.lock21
-rw-r--r--Cargo.toml2
-rw-r--r--cli/Cargo.toml3
-rw-r--r--cli/main.rs7
4 files changed, 0 insertions, 33 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 725e8362d..483ed55fb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -784,7 +784,6 @@ dependencies = [
"text-size",
"text_lines",
"thiserror",
- "tikv-jemallocator",
"tokio",
"tokio-util",
"tower-lsp",
@@ -5165,26 +5164,6 @@ dependencies = [
]
[[package]]
-name = "tikv-jemalloc-sys"
-version = "0.5.3+5.3.0-patched"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a678df20055b43e57ef8cddde41cdfda9a3c1a060b67f4c5836dfb1d78543ba8"
-dependencies = [
- "cc",
- "libc",
-]
-
-[[package]]
-name = "tikv-jemallocator"
-version = "0.5.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "20612db8a13a6c06d57ec83953694185a367e16945f66565e8028d2c0bd76979"
-dependencies = [
- "libc",
- "tikv-jemalloc-sys",
-]
-
-[[package]]
name = "time"
version = "0.3.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
diff --git a/Cargo.toml b/Cargo.toml
index 814bd6d22..916248d9a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -134,8 +134,6 @@ tar = "=0.4.38"
tempfile = "3.4.0"
thiserror = "1.0.40"
tokio = { version = "1.28.1", features = ["full"] }
-tikv-jemallocator = "0.5.0"
-tikv-jemalloc-sys = "0.5.3"
tokio-rustls = "0.24.0"
tokio-util = "0.7.4"
tower-lsp = { version = "=0.17.0", features = ["proposed"] }
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;