Throttle delayable requests when non-delayable requests are in-flight

Desktop / Chromium - Devdeep Ray [chromium.org] - 8 August 2017 01:50 EDT

This CL implements the throttling of delayable requests whenever there are non-delayable requests in-flight after the layout blocking phase. Currently, a limit of 10 is imposed on delayable requests, but all non-delayable requests are let through, which results in more than 10 requests being in flight simultaneously.

Design doc: https://docs.google.com/document/d/1pg5B4WoNfr1x2P9Xa3nfp4ggGNMBNnVjFxAGKbOhnDA/edit?usp=sharing

Bug: 746640 Change-Id: I22f8141281b05c2c849255d874e4dc6f3d51f94b Reviewed-on: https://chromium-review.googlesource.com/585558 Commit-Queue: Devdeep Ray

86d04e2 Throttle delayable requests when non-delayable requests are in-flight.
content/browser/loader/resource_scheduler.cc | 56 ++++-
content/browser/loader/resource_scheduler.h | 30 ++-
.../browser/loader/resource_scheduler_unittest.cc | 263 ++++++++++++++++++++-
tools/metrics/histograms/histograms.xml | 11 +
4 files changed, 344 insertions(+), 16 deletions(-)

Upstream: git.chromium.org


  • Share