-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Loading of a git source is slow due to manifest parsing #14395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The core problem is that git sources are indexed by name. To find a name, we walk the source to find all Without that second exception, we could parse With the second exception, we have to do a full parse of the Ideas
|
Main risk: there aren't enough manifests for us to skip loading |
If we are able to do this, we might be able to extend it to also work with recursive |
When you have some git dependencies or patches, loading them takes a long time
For the traces from #14238, notice how slow the first

resolve
is compared to the second. Almost all of that is taken up in Manifest parsingNote: this slow down is most relevant for tooling like
rust-analyzer
or rust-defined completions when it may be called in interactive contexts without any compilation happening.Related: #13724, #14603
The text was updated successfully, but these errors were encountered: