diff options
| author | Chayim Refael Friedman <chayimfr@gmail.com> | 2025-05-21 15:24:07 +0300 |
|---|---|---|
| committer | Chayim Refael Friedman <chayimfr@gmail.com> | 2025-06-12 08:50:43 +0300 |
| commit | 1babfe7a828331ed8af373db0d02a66f9fc1a319 (patch) | |
| tree | f0207b870642c8525ebe1c56f3853a9da509785f | |
| parent | c09ac193652df29b86e4ccee64978514b6e07ceb (diff) | |
| download | rust-1babfe7a828331ed8af373db0d02a66f9fc1a319.tar.gz rust-1babfe7a828331ed8af373db0d02a66f9fc1a319.zip | |
LRU ast id map
We can do that and it's pretty heavy.
| -rw-r--r-- | src/tools/rust-analyzer/crates/hir-expand/src/db.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/crates/hir-expand/src/db.rs b/src/tools/rust-analyzer/crates/hir-expand/src/db.rs index 7cb1b6c0207..b7df3ee2f91 100644 --- a/src/tools/rust-analyzer/crates/hir-expand/src/db.rs +++ b/src/tools/rust-analyzer/crates/hir-expand/src/db.rs @@ -60,6 +60,7 @@ pub trait ExpandDatabase: RootQueryDb { fn proc_macros_for_crate(&self, krate: Crate) -> Option<Arc<CrateProcMacros>>; #[salsa::invoke(ast_id_map)] + #[salsa::lru(1024)] fn ast_id_map(&self, file_id: HirFileId) -> Arc<AstIdMap>; #[salsa::transparent] |
