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

Lazy index loading (2/2) #1086

Merged
merged 15 commits into from
Jul 20, 2022
Merged

Lazy index loading (2/2) #1086

merged 15 commits into from
Jul 20, 2022

Conversation

mosteo
Copy link
Member

@mosteo mosteo commented Jul 9, 2022

This is the part that deals with the "provides" requirements. Essentially, when the new metadata file provides.toml doesn't exist, we revert to full index load. A full index load generates this file for future use.

mosteo and others added 11 commits July 8, 2022 13:44
This cache file, which is common to all indexes, tells us in advance which
crates have to be loaded because they provide some another crate. E.g., if
"gnat" is requested to be loaded, we need to load all gnat_native, and
x-compilers.

If this file doesn't exist, we can only be sure by loading the full index, at
which time the file is regenerated for future use.
E.g. we were loading all gn* when only gnat_native needed to be loaded
@mosteo mosteo marked this pull request as ready for review July 10, 2022 09:53
Base automatically changed from feat/lazy-load-1 to master July 20, 2022 10:10
@mosteo mosteo merged commit cce020a into master Jul 20, 2022
@mosteo mosteo deleted the feat/lazy-load-2 branch July 20, 2022 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants