Skip to content

Stop early on first archive extension that exists #118

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

Merged
merged 1 commit into from
Oct 10, 2022
Merged

Stop early on first archive extension that exists #118

merged 1 commit into from
Oct 10, 2022

Conversation

foutrelis
Copy link
Member

When a .zst package is downloaded from the archive, there's no point to also check for the same package with a .xz extension. Doing so results in huge delays because archive.archlinux.org redirects to archive.org when a requested file doesn't exist, and archive.org lookups are slow.

Testing on thunar-4.16.11-2, downloads are reduced from 10m36s to 1m39s.

When a .zst package is downloaded from the archive, there's no point to
also check for the same package with a .xz extension. Doing so results
in huge delays because archive.archlinux.org redirects to archive.org
when a requested file doesn't exist, and archive.org lookups are slow.

Testing on thunar-4.16.11-2, downloads are reduced from 10m36s to 1m39s.
@foutrelis foutrelis requested a review from Foxboron October 2, 2022 20:42
@jelly
Copy link
Member

jelly commented Oct 4, 2022

Nice! Fasterrrr rebuilds!

@kpcyrd kpcyrd merged commit 8cadac7 into archlinux:master Oct 10, 2022
@foutrelis foutrelis deleted the faster-package-downloads branch October 10, 2022 11:05
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.

4 participants