diff options
author | Aleksey Kladov <[email protected]> | 2019-05-04 13:26:55 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-05-04 14:04:34 +0100 |
commit | 8876f44054f57c1f4ee305eb47340609683bd566 (patch) | |
tree | 4effb33083140bf86deabd5e39be50ad7ce99ca9 /crates/ra_hir/src | |
parent | b1febf2e6d4606a7e0eb422cdeba5dd286b10794 (diff) |
Revert "eagarly clean astd maps"
This reverts commit 6c63a59425e256ce46d058807b64149297231982.
This causes massive slowdowns: looks like we accidentally have some source-depndent
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r-- | crates/ra_hir/src/db.rs | 2 | ||||
-rw-r--r-- | crates/ra_hir/src/source_id.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/db.rs b/crates/ra_hir/src/db.rs index 3ac3c79a3..8af0a3176 100644 --- a/crates/ra_hir/src/db.rs +++ b/crates/ra_hir/src/db.rs | |||
@@ -60,7 +60,7 @@ pub trait DefDatabase: SourceDatabase { | |||
60 | #[salsa::invoke(crate::source_id::AstIdMap::ast_id_map_query)] | 60 | #[salsa::invoke(crate::source_id::AstIdMap::ast_id_map_query)] |
61 | fn ast_id_map(&self, file_id: HirFileId) -> Arc<AstIdMap>; | 61 | fn ast_id_map(&self, file_id: HirFileId) -> Arc<AstIdMap>; |
62 | 62 | ||
63 | #[salsa::invoke(crate::source_id::AstIdMap::ast_id_to_node_query)] | 63 | #[salsa::invoke(crate::source_id::AstIdMap::file_item_query)] |
64 | fn ast_id_to_node(&self, file_id: HirFileId, ast_id: ErasedFileAstId) -> TreeArc<SyntaxNode>; | 64 | fn ast_id_to_node(&self, file_id: HirFileId, ast_id: ErasedFileAstId) -> TreeArc<SyntaxNode>; |
65 | 65 | ||
66 | #[salsa::invoke(RawItems::raw_items_query)] | 66 | #[salsa::invoke(RawItems::raw_items_query)] |
diff --git a/crates/ra_hir/src/source_id.rs b/crates/ra_hir/src/source_id.rs index a2bc9a799..0a8fb6d32 100644 --- a/crates/ra_hir/src/source_id.rs +++ b/crates/ra_hir/src/source_id.rs | |||
@@ -92,7 +92,7 @@ impl AstIdMap { | |||
92 | Arc::new(AstIdMap::from_source_file(&source_file)) | 92 | Arc::new(AstIdMap::from_source_file(&source_file)) |
93 | } | 93 | } |
94 | 94 | ||
95 | pub(crate) fn ast_id_to_node_query( | 95 | pub(crate) fn file_item_query( |
96 | db: &impl DefDatabase, | 96 | db: &impl DefDatabase, |
97 | file_id: HirFileId, | 97 | file_id: HirFileId, |
98 | ast_id: ErasedFileAstId, | 98 | ast_id: ErasedFileAstId, |