3 ms·
Rust-analyzer uses Salsa - incremental computation library that uses memoization. https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/dev/guide.md
by lenkite 5y ago
Rust-analyzer uses Salsa - incremental computation library that uses memoization.
https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/dev/guide.md https://github.com/rust-analyzer/rust-analyzer/blob/master/d...
- zesterer 5y agoInteresting choice to reply to matklad, one of rust-analyzer's primary authors, to explain how it works.
- matklad 5y agoYeah, to clarify, memoization happens after parsing. So for syntax highlighting we have a situation where from-scratch parsing is faster than incremental typechecking.
- lenkite 5y agoThanks for explaining and making rust-analyzer!