Skip to content

Commit 9138ab4

Browse files
LRU ast id map
We can do that and it's pretty heavy.
1 parent 8064f4e commit 9138ab4

File tree

1 file changed

+1
-0
lines changed
  • crates/hir-expand/src

1 file changed

+1
-0
lines changed

crates/hir-expand/src/db.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ pub trait ExpandDatabase: RootQueryDb {
6060
fn proc_macros_for_crate(&self, krate: Crate) -> Option<Arc<CrateProcMacros>>;
6161

6262
#[salsa::invoke(ast_id_map)]
63+
#[salsa::lru(512)]
6364
fn ast_id_map(&self, file_id: HirFileId) -> Arc<AstIdMap>;
6465

6566
#[salsa::transparent]

0 commit comments

Comments
 (0)