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

Don't use full indexes unnecessarily on legacy Gemfiles #6916

Merged
merged 1 commit into from Aug 25, 2023

Conversation

deivid-rodriguez
Copy link
Member

What was the end-user or developer problem that led to this PR?

On legacy Gemfiles with multiple remote sources, where all of them support the compact index API, we were still falling back to full indexes, making things slow.

What is your fix for the problem, implemented in this PR?

My fix to to remove the special case of "multiple remote Gemfile is involved" and change it to "at least one remote that only supports full indexes is involved".

Fixing this also allows to simplifying the code.

Make sure the following tasks are checked

Copy link
Member

@martinemde martinemde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

On legacy Gemfiles with multiple remote sources, where all of them
support the compact index API, we were still falling back to full
indexes.

Fixing this also allows to simplifying the code.
@deivid-rodriguez deivid-rodriguez force-pushed the speed-up-multiple-global-remotes-case branch from 486e963 to b1357c8 Compare August 24, 2023 21:56
@deivid-rodriguez deivid-rodriguez merged commit ef84fd7 into master Aug 25, 2023
92 checks passed
@deivid-rodriguez deivid-rodriguez deleted the speed-up-multiple-global-remotes-case branch August 25, 2023 00:12
deivid-rodriguez added a commit that referenced this pull request Sep 21, 2023
…es-case

Don't use full indexes unnecessarily on legacy Gemfiles

(cherry picked from commit ef84fd7)
deivid-rodriguez added a commit that referenced this pull request Sep 21, 2023
…es-case

Don't use full indexes unnecessarily on legacy Gemfiles

(cherry picked from commit ef84fd7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants