Request compressed rpm transfer#146
Open
bmwiedemann wants to merge 1 commit into
Open
Conversation
if server supports it, this can save 10-70% of transfer bandwidth because (d)rpm metadata is uncompressed E.g. curl -L -v http://download.opensuse.org/update/leap/15.0/oss/noarch/kernel-source-vanilla-4.12.14-lp150.12.22.1_lp150.12.25.1.noarch.drpm | gzip -c1 | wc -c compresses 11157036 bytes to 4161087 On the downside, it adds 32 byte to every HTTP request header which would add 256 microseconds on a 1MBit/s line.
Member
|
Please do this only for "small enough" rpms (i.e. there should be some threshold) and not for all files. |
Member
|
(we even know the header size, so we can do something clever) |
Member
The media backend does not know anything about the file (just the URL and maybe the expected size). And the .rpm from download.opensuse.org (via public openSUSE mirrors) are handled by multicurl (i.e. are not covered by the patch). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Request compressed rpm transfer, if server supports it. This can save 10-70% of transfer bandwidth, because (d)rpm metadata is uncompressed
E.g.
compresses 11157036 bytes to 4161087
On the downside, it adds 32 byte to every HTTP request header
which would add 256 microseconds on a 1MBit/s line.
Also, none of the public openSUSE mirrors support compression of (d)rpm files yet and if they did, it could cause some server-side CPU load.
Note: Only tested downloading single rpm with
zypper in -d http://aw.lsmod.de/rpm/test.rpmNot yet tested with multicurl.