-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
perf: Fix cloud download speed regression #19734
Conversation
current_merged_range = range; | ||
current_n_bytes = 0; | ||
Some((v, current_idx)) | ||
current_n_bytes = current_merged_range.len(); |
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.
fix incorrect re-initialization
…ola-rs#19730)" This reverts commit 62ef918.
26f6c18
to
6204d20
Compare
let gap_tolerance = | ||
(current_n_bytes.max(range.len()) / 8).clamp(1024 * 1024, 8 * 1024 * 1024); | ||
|
||
leq_current_dist_to_chunk_size && distance <= gap_tolerance |
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.
The formatter broke with the existing if
on the entire file 🥲, so I rewrote it to use descriptive variable names instead
Reverts #19730 - from benchmarking it performed worse.
In hindsight it's not worth adding that rule - even without it we will only have up to half of our requests being tiny in the worst case (in this worst case they would be interleaved).