rust-lang / rust-lang/rust-analyzer

Load files into the VFS in parallel on startup

Open
#17,373 4 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

We currently load them from a single thread which can make startup very slow for bigger projects as we re-query the project layout over and over again until all files are loaded (this is a separate issue that we should fix, that is wait with that until all files are loaded into memory).

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 locating the VFS startup path that loads project files and the code that repeatedly re-queries the project layout. Measure startup behavior for a larger project before changing it. Done means files load into the VFS in parallel without waiting for the separate project-layout issue, with relevant tests or benchmarks passing.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
devtools, performance
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.