LRU ast id map
We can do that and it's pretty heavy.
This commit is contained in:
parent
c09ac19365
commit
1babfe7a82
1 changed files with 1 additions and 0 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue