Glancer 0.5.0 claims rust-analyzer parity on a sub-100 MB budget
The experimental disk-based Rust LSP says it now matches rust-analyzer on benchmarked projects while idling under 100 MB of RAM — full async modeling and dirty-buffer analysis ride along.
The rule every language server inherits: keep the index in RAM, because disk is slow. Rust Glancer 0.5.0, an experimental disk-based Rust LSP, claims rust-analyzer-level performance anyway — its author sounds half-surprised.
Equivalence comes from his internal run — some Glancer answers carry more detail than rust-analyzer's, which drags the score down.
“Memory is faster than disk. Simple, right? Well … turns out that the answer is ‘it depends.’”
— the 0.5.0 release post
Can a disk-based Rust LSP match rust-analyzer performance?
The stand measures actions, not requests. rust-analyzer runs with cache priming on; proc macros, build scripts and diagnostics stay off — corners Glancer can't reach yet. His verdict on his own numbers: “intuitively the math is not mathing.”
- start → LSP ready
- indexing after restart
- replayed session: typing, saves, hovers, navigation
- synthetic: hover → repeat → inlay hints → repeat
| Bevy workload | server | server ready | run time |
|---|---|---|---|
| synthetic edit | rust-analyzer | 10.51 s | 387 ms |
| synthetic edit | Rust Glancer | 9.19 s | 1.53 s |
Bold marks each column's winner — they split. Green in the report flags a ≥10% gap; most pairings don't clear it. Run on M4 Max 36 GB, M1 Max 32 GB, Debian i9-11900H 32 GB.
Why “server ready” instead of first answer
On Bevy, rust-analyzer starts answering about 3 s before it reports ready. Editing before ready can panic sporadically and restart priming, sinking the scenario to ~23 s instead of ~11 — so the ready signal was the stable metric.
How disk-first keeps up
The main move is Ajika, a persistent-first version of salsa: loaded results stay in RAM for a query's duration, dirty buffers get an in-memory overlay, and disk is touched only for what the query needs.
The disk tax is real: 28–30 ms per query where rust-analyzer spends 1 — under the perception line. Less upfront indexing is deliberate, and ready time is where Glancer actually wins.
The index is sharded (impl blocks, for one) so queries read slices, not the world. rust-analyzer's optimizations were borrowed late, only where his own ideas ran out.
What 0.5.0 adds
Two long-standing gaps close this release.
unsaved files get the whole editor surface now
Full analysis lands on every keystroke: a freshly written trait impl applies to its type without a save. Completion sees a method added in another unsaved buffer, and Go to Definition resolves to the destination's edited location.
the .await shortcut is gone
Futures are properly modeled: opaque futures, async blocks and closures all participate in type inference. Previously .await was treated as sugar over the async fn's own type.
know them before you switch
Proc macros aren't supported yet. Build-script evaluation runs only passively, user-driven. Diagnostics were off in the benchmark stand. Debian cold indexing drags on mimalloc without arenas — build with arenas to trade idle RAM for speed.
If parity survives other people's workspaces, sub-100 MB stops being a compromise. Big Rust codebases on memory-tight machines just gained a real option.
Sources
the radar reads hundreds of sources so you don't have to — the feed · the digest, nightly 21:00