|
|
Chromium Code Reviews
Description[ResourceScheduler] Throttle H2/QUIC requests just like we do for 1.1
This is a short-term fix to alleviate long delays on early requests when there
are many requests in flight. See the bug for more detail.
BUG=655585
Committed: https://crrev.com/a9d98bd309fd58129b40ee9fccefc2ef76732f6c
Cr-Commit-Position: refs/heads/master@{#426251}
Patch Set 1 #Patch Set 2 : Tests and flag #Patch Set 3 : Nits #
Total comments: 2
Patch Set 4 : Add comment #
Total comments: 4
Patch Set 5 : Test that default is to enable kPriroritySupportedRequestsDelayable #Patch Set 6 : Faster feature lookup #Patch Set 7 : Nit #
Messages
Total messages: 29 (19 generated)
The CQ bit was checked by jkarlin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by jkarlin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
jkarlin@chromium.org changed reviewers: + csharrison@chromium.org
csharrison@ PTAL at everything, thanks!
LGTM w/ nit https://codereview.chromium.org/2435743002/diff/40001/content/browser/loader/... File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/2435743002/diff/40001/content/browser/loader/... content/browser/loader/resource_scheduler.cc:35: const base::Feature kPrioritySupportedRequestsDelayable{ Can you add a comment about what this feature does? Its name is not very illuminating.
The CQ bit was checked by jkarlin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Thanks! https://codereview.chromium.org/2435743002/diff/40001/content/browser/loader/... File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/2435743002/diff/40001/content/browser/loader/... content/browser/loader/resource_scheduler.cc:35: const base::Feature kPrioritySupportedRequestsDelayable{ On 2016/10/19 15:40:43, Charlie Harrison wrote: > Can you add a comment about what this feature does? Its name is not very > illuminating. Done.
rdsmith@chromium.org changed reviewers: + rdsmith@chromium.org
LGTM with offline conversation about making sure we're testing what the default is. The comments below can be used or ignored as you prefer. https://codereview.chromium.org/2435743002/diff/60001/content/browser/loader/... File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/2435743002/diff/60001/content/browser/loader/... content/browser/loader/resource_scheduler.cc:524: if (base::FeatureList::IsEnabled(kPrioritySupportedRequestsDelayable)) { I note that this lookup seems O(log n) (map) in the set of feature; given that this code is run per-request, it might be worth a separate boolean. This would also make the change I raise below more readable. Up to you. https://codereview.chromium.org/2435743002/diff/60001/content/browser/loader/... content/browser/loader/resource_scheduler.cc:535: if (!http_server_properties.SupportsRequestPriority(scheme_host_port)) I'll call out that another option (which probably would have been my preferred) would have been to just combine the conditionals here rather than have the larger if statement. But I can see arguments both ways, and I presume you made the choice you did consciously, so just a thought.
The CQ bit was checked by jkarlin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
rdsmith@ Thanks, PTAL! https://codereview.chromium.org/2435743002/diff/60001/content/browser/loader/... File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/2435743002/diff/60001/content/browser/loader/... content/browser/loader/resource_scheduler.cc:524: if (base::FeatureList::IsEnabled(kPrioritySupportedRequestsDelayable)) { On 2016/10/19 16:41:43, Randy Smith - Not in Mondays wrote: > I note that this lookup seems O(log n) (map) in the set of feature; given that > this code is run per-request, it might be worth a separate boolean. This would > also make the change I raise below more readable. Up to you. Done. https://codereview.chromium.org/2435743002/diff/60001/content/browser/loader/... content/browser/loader/resource_scheduler.cc:535: if (!http_server_properties.SupportsRequestPriority(scheme_host_port)) On 2016/10/19 16:41:43, Randy Smith - Not in Mondays wrote: > I'll call out that another option (which probably would have been my preferred) > would have been to just combine the conditionals here rather than have the > larger if statement. But I can see arguments both ways, and I presume you made > the choice you did consciously, so just a thought. Acknowledged.
Still LGTM.
The CQ bit was checked by jkarlin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
LGTM; I assume the compiler/try bots would catch any problems.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by jkarlin@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from csharrison@chromium.org Link to the patchset: https://codereview.chromium.org/2435743002/#ps120001 (title: "Nit")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #7 (id:120001)
Message was sent while issue was closed.
Description was changed from ========== [ResourceScheduler] Throttle H2/QUIC requests just like we do for 1.1 This is a short-term fix to alleviate long delays on early requests when there are many requests in flight. See the bug for more detail. BUG=655585 ========== to ========== [ResourceScheduler] Throttle H2/QUIC requests just like we do for 1.1 This is a short-term fix to alleviate long delays on early requests when there are many requests in flight. See the bug for more detail. BUG=655585 Committed: https://crrev.com/a9d98bd309fd58129b40ee9fccefc2ef76732f6c Cr-Commit-Position: refs/heads/master@{#426251} ==========
Message was sent while issue was closed.
Patchset 7 (id:??) landed as https://crrev.com/a9d98bd309fd58129b40ee9fccefc2ef76732f6c Cr-Commit-Position: refs/heads/master@{#426251} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
