rust-lang / rust-lang/rust-analyzer
Assist computation is way too slow
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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