Skip to content

Commit 7a1a082

Browse files
authored
perf: cache swc dependency analysis and don't hold onto ParsedSources in memory (#15502)
1 parent c66386d commit 7a1a082

17 files changed

+784
-175
lines changed

Cargo.lock

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ winres = "=0.1.12"
4848
[dependencies]
4949
deno_ast = { version = "0.17.0", features = ["bundler", "cjs", "codegen", "dep_graph", "module_specifier", "proposal", "react", "sourcemap", "transforms", "transpiling", "typescript", "view", "visit"] }
5050
deno_core = { version = "0.147.0", path = "../core" }
51-
deno_doc = "0.40.0"
52-
deno_emit = "0.5.0"
53-
deno_graph = "0.30.0"
51+
deno_doc = "0.42.0"
52+
deno_emit = "0.6.0"
53+
deno_graph = "0.31.0"
5454
deno_lint = { version = "0.32.0", features = ["docs"] }
5555
deno_runtime = { version = "0.73.0", path = "../runtime" }
5656
deno_task_shell = "0.5.0"
@@ -69,7 +69,7 @@ dprint-plugin-markdown = "=0.14.0"
6969
dprint-plugin-typescript = "=0.71.2"
7070
encoding_rs = "=0.8.31"
7171
env_logger = "=0.9.0"
72-
eszip = "=0.23.0"
72+
eszip = "=0.24.0"
7373
fancy-regex = "=0.10.0"
7474
flate2 = "=1.0.24"
7575
http = "=0.2.6"

cli/cache/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ mod common;
1919
mod disk_cache;
2020
mod emit;
2121
mod incremental;
22+
mod parsed_source;
2223

2324
pub use check::TypeCheckCache;
2425
pub use common::FastInsecureHasher;
2526
pub use disk_cache::DiskCache;
2627
pub use emit::EmitCache;
2728
pub use incremental::IncrementalCache;
29+
pub use parsed_source::ParsedSourceCache;
2830

2931
/// A "wrapper" for the FileFetcher and DiskCache for the Deno CLI that provides
3032
/// a concise interface to the DENO_DIR when building module graphs.

0 commit comments

Comments
 (0)