internal: Add config to specifiy lru capacities for all queries

This commit is contained in:
Lukas Wirth 2023-03-25 23:03:22 +01:00
parent 27c076a367
commit 5616d91b73
8 changed files with 202 additions and 9 deletions

View file

@ -139,7 +139,10 @@ impl GlobalState {
Handle { handle, receiver }
};
let analysis_host = AnalysisHost::new(config.lru_capacity());
let mut analysis_host = AnalysisHost::new(config.lru_parse_query_capacity());
if let Some(capacities) = config.lru_query_capacities() {
analysis_host.update_lru_capacities(capacities);
}
let (flycheck_sender, flycheck_receiver) = unbounded();
let mut this = GlobalState {
sender,