Skip to content
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

Insert dependencies into fork state prior to fetching metadata #12057

Merged
merged 2 commits into from
Mar 7, 2025

Conversation

charliermarsh
Copy link
Member

Summary

The order here is slightly off... As-is, we fetch the metadata for the dependency, then insert the URLs and indexes into the fork state -- so the fetch doesn't take the explicit index or URL into account. This has mostly been unobserved because we re-fetch anyway in the next request, but if we do things in the right order (add to fork state, fetch dependencies, insert dependencies), we can cut down on the fetches.

Closes #12056.

@charliermarsh charliermarsh added bug Something isn't working performance Potential performance improvement labels Mar 7, 2025
@charliermarsh charliermarsh merged commit 3dc9ac1 into main Mar 7, 2025
74 checks passed
@charliermarsh charliermarsh deleted the charlie/index branch March 7, 2025 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working performance Potential performance improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

With explicit indexes, uv still pre-fetches from implicit indexes in some cases
1 participant