NewsCrawler.org

Rust Glancer 0.5.0 says it now matches rust-analyzer performance

Rust Glancer is an experimental LSP[1] server for Rust that keeps idle RAM under 100mb by storing indexed workspace data on disk and loading only what a query needs. The author says that on the projects where they measured it, Rust Glancer now matches rust-analyzer performance, and that the release is built on Ajika, a persistent-first version of salsa.

The release adds full editor support for unsaved files, so each keystroke gets full analysis. Async and .await are now modelled properly in type inference, and declarative macros[2] support completions, hovers and inlay hints[3]. Auto imports are also suggested in completions, and projects can be opened from subdirectories.

For benchmarks, the author built a dedicated test stand and measured four scenarios: time until the server is ready, indexing after a restart, a replayed user session, and a synthetic set of repeated hovers and inlay hints. To keep conditions close, cache priming stayed enabled for rust-analyzer, while proc macros[4], build script evaluation and diagnostics were disabled, because Rust Glancer does not support proc macros yet. The author admits that the measurements may contain mistakes and asks readers to report them. The author treats a difference of 10% or more as the basis for naming a winner.

Repository Rust Glancer github.com

Experimental LSP server for Rust that keeps memory use low by storing indexed workspace data on disk.

Stars: 793Forks: 16License: Apache-2.0Updated:

Read the original rust-glancer.github.ioDiscussion

Sources

Published: First seen: Читать по-русски

Open as a page