rust-lang / rust-lang/rust-analyzer

Assist computation is way too slow

Open
#15,368 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-assists A-perf C-enhancement
Dominant language
Rust
Stars
16.9k
Forks
2.2k
Avg merge
1d 12h
Merged PRs (30d)
72

Description

Vague issue, but I noticed this somewhat frequently in some files that assists take a really long time to compute and show up at times. So far we haven't really given much thought to this aside from trying to make them somewhat lazy but it seems there are some assists that do a lot of upfront work still, we should investigate that.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the slow assist computation in files where the delay occurs, then profile the assist path to identify the upfront work. The issue provides no specific files, tests, or entry points; done would require identifying the costly computation and establishing that assists appear promptly without unnecessary work.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
performance, tooling
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.