mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
LRU ast id map
We can do that and it's pretty heavy.
This commit is contained in:
parent
09a66474a2
commit
9a1063f266
@ -60,6 +60,7 @@ pub trait ExpandDatabase: RootQueryDb {
|
|||||||
fn proc_macros_for_crate(&self, krate: Crate) -> Option<Arc<CrateProcMacros>>;
|
fn proc_macros_for_crate(&self, krate: Crate) -> Option<Arc<CrateProcMacros>>;
|
||||||
|
|
||||||
#[salsa::invoke(ast_id_map)]
|
#[salsa::invoke(ast_id_map)]
|
||||||
|
#[salsa::lru(1024)]
|
||||||
fn ast_id_map(&self, file_id: HirFileId) -> Arc<AstIdMap>;
|
fn ast_id_map(&self, file_id: HirFileId) -> Arc<AstIdMap>;
|
||||||
|
|
||||||
#[salsa::transparent]
|
#[salsa::transparent]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user