summaryrefslogtreecommitdiff
path: root/cli/deno_dir.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-08-22 12:14:59 -0400
committerGitHub <noreply@github.com>2022-08-22 12:14:59 -0400
commit7a1a082876298a4c9e37237074ea62942180d083 (patch)
tree690b46889987a9f576a1b0601a322141b51b0660 /cli/deno_dir.rs
parentc66386dbd20b735161017a239c6af013da1f1718 (diff)
perf: cache swc dependency analysis and don't hold onto `ParsedSource`s in memory (#15502)
Diffstat (limited to 'cli/deno_dir.rs')
-rw-r--r--cli/deno_dir.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/deno_dir.rs b/cli/deno_dir.rs
index 303ad2c11..c87ed450c 100644
--- a/cli/deno_dir.rs
+++ b/cli/deno_dir.rs
@@ -58,6 +58,12 @@ impl DenoDir {
self.root.join("lint_incremental_cache_v1")
}
+ /// Path for caching swc dependency analysis.
+ pub fn dep_analysis_db_file_path(&self) -> PathBuf {
+ // bump this version name to invalidate the entire cache
+ self.root.join("dep_analysis_cache_v1")
+ }
+
/// Path for the cache used for type checking.
pub fn type_checking_cache_db_file_path(&self) -> PathBuf {
// bump this version name to invalidate the entire cache