From d20d788571b9d1b5f4b9a386b8ca82ee0b278c17 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 19 Dec 2018 01:10:03 +0300 Subject: disable gc for now --- crates/ra_analysis/src/imp.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'crates/ra_analysis') diff --git a/crates/ra_analysis/src/imp.rs b/crates/ra_analysis/src/imp.rs index 843f28d05..0de0e2645 100644 --- a/crates/ra_analysis/src/imp.rs +++ b/crates/ra_analysis/src/imp.rs @@ -43,7 +43,7 @@ impl AnalysisHostImpl { } pub fn apply_change(&mut self, change: AnalysisChange) { log::info!("apply_change {:?}", change); - self.gc_syntax_trees(); + // self.gc_syntax_trees(); for (file_id, text) in change.files_changed { self.db @@ -117,6 +117,10 @@ impl AnalysisHostImpl { } } + #[allow(unused)] + /// Ideally, we should call this function from time to time to collect heavy + /// syntax trees. However, if we actually do that, everything is recomputed + /// for some reason. Needs investigation. fn gc_syntax_trees(&mut self) { self.db .query(ra_db::SourceFileQuery) -- cgit v1.2.3