All Salsa queries, used in AnalysisDatabase must have a set sensible LRU policy to keep memory usage limited. Check out how this is done in Rust Analyzer for reference.
Currently - there's no LRU in salsa - there's a preparation for it.
For using LRU - an upgrade to salsa-rust-analyzer is required, or a move to salsa3.
All Salsa queries, used in
AnalysisDatabase
must have a set sensible LRU policy to keep memory usage limited. Check out how this is done in Rust Analyzer for reference.https://github.com/salsa-rs/salsa/blob/754eea8b5f8a31b1100ba313d59e41260b494225/book/src/rfcs/RFC0004-LRU.md
This task is spin off #5355