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
chunked: improve function to merge chunks #1846
chunked: improve function to merge chunks #1846
Conversation
631f5e8
to
5a50f39
Compare
LGTM |
@mtrmac @nalind @saschagrunert PTAL |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe, saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Locally LGTM (but I forgot all about how this works, if I ever knew, and I didn’t study what OriginFile
/Hole
/Chunks
/… mean now.)
5a50f39
to
70ce1c0
Compare
improve the function that combines neighbor chunks. Instead of using the number of parts, which also includes local files, use only the number of chunks that must be retrieved from the network. In addition, introduce a threshold limit to merge chunks so that we further reduce the number of requested ranges. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
70ce1c0
to
43b836e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
7cd5d22
into
containers:main
improve the function that combines neighbor chunks. Instead of using the number of parts, which also includes local files, use only the number of chunks that must be retrieved from the network.
In addition, introduce a threshold limit to merge chunks so that we further reduce the number of requested ranges.