Skip to content

Lazy index loading (2/2)#1086

Merged
mosteo merged 15 commits into
masterfrom
feat/lazy-load-2
Jul 20, 2022
Merged

Lazy index loading (2/2)#1086
mosteo merged 15 commits into
masterfrom
feat/lazy-load-2

Conversation

@mosteo

@mosteo mosteo commented Jul 9, 2022

Copy link
Copy Markdown
Member

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 force-pushed the feat/lazy-load-2 branch from 6263b4e to e794082 Compare July 9, 2022 11:04
@mosteo mosteo marked this pull request as ready for review July 10, 2022 09:53
@mosteo mosteo requested a review from Fabien-Chouteau 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.

3 participants