Rust Glancer: An LSP Server That Uses Two Orders of Magnitude Less RAM
Rust Glancer, a functional LSP server for Rust, uses two orders of magnitude less RAM than rust-analyzer. This post, originally a comment on lobste.rs, shares thoughts on why rust-analyzer's architecture is overkill for most code, the potential for lazy analysis of function bodies, the challenges of proc macro support, and the idea of using rustc's .rmeta files for dependencies. The author advocates for a 'glance analyzer' architecture that splits the world into an incremental tip and a compact, on-disk base.
This still seems to me to be the lowest-hanging watermelon here — split the world into arcy-pointy incremental tip of the iceberg, and mostly read-only, on disk, compact, dark, moist breeding ground for supply chain attacks.