Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Issue 23620058: Add a cap of six in-flight requests per host to the ResourceScheduler (Closed)

Created:
7 years, 3 months ago by oystein (OOO til 10th of July)
Modified:
7 years, 1 month ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cbentzel+watch_chromium.org, jam
Visibility:
Public.

Description

Add a cap of six in-flight requests per host to the ResourceScheduler There's a cap of 10 delayable in-flight requests already present in the ResourceScheduler, but due to the underlying cap on six connections per host we sometimes don't utilize all ten if they're all for the same host. This CL adds an additional per-host cap, meaning if there's already six in-flight requests going to foo.bar.com, another request to foo.bar.com will be skipped in favour of a later-queued request to foo2.bar.com. Tests from pmeenan@ suggests this results in an overall increase of onload and Speed Index speed by about 2.5%, and DOM Content Loaded speed by 1.15%. BUG=319488 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=235491

Patch Set 1 #

Patch Set 2 : Updated the per-host request cap to take high-pri requests into account #

Patch Set 3 : Rebase #

Patch Set 4 : Fixed build #

Total comments: 20

Patch Set 5 : Review fixes #

Total comments: 2

Patch Set 6 : Review fixes #

Patch Set 7 : Rebase #

Total comments: 2

Patch Set 8 : Removed duplicate iteration code #

Total comments: 2

Patch Set 9 : Review fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -40 lines) Patch
M content/browser/loader/resource_scheduler.h View 1 2 3 4 5 2 chunks +14 lines, -3 lines 0 comments Download
M content/browser/loader/resource_scheduler.cc View 1 2 3 4 5 6 7 6 chunks +116 lines, -27 lines 0 comments Download
M content/browser/loader/resource_scheduler_unittest.cc View 1 2 3 4 5 6 2 chunks +32 lines, -10 lines 0 comments Download
M net/base/priority_queue_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
oystein (OOO til 10th of July)
7 years, 3 months ago (2013-09-18 20:27:22 UTC) #1
James Simonsen
Sorry for taking so long! Can you update the CL description to include the results? ...
7 years, 1 month ago (2013-11-13 01:26:22 UTC) #2
oystein (OOO til 10th of July)
Note: Not tested yet, not even sure if it compiles; will check when I get ...
7 years, 1 month ago (2013-11-14 00:19:07 UTC) #3
James Simonsen
https://codereview.chromium.org/23620058/diff/45001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/23620058/diff/45001/content/browser/loader/resource_scheduler.cc#newcode373 content/browser/loader/resource_scheduler.cc:373: void ResourceScheduler::GetNumDelayableRequestsInFlight( On 2013/11/14 00:19:07, Oystein wrote: > On ...
7 years, 1 month ago (2013-11-14 19:22:43 UTC) #4
oystein (OOO til 10th of July)
Thanks :) https://codereview.chromium.org/23620058/diff/45001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/23620058/diff/45001/content/browser/loader/resource_scheduler.cc#newcode373 content/browser/loader/resource_scheduler.cc:373: void ResourceScheduler::GetNumDelayableRequestsInFlight( On 2013/11/14 19:22:43, James Simonsen ...
7 years, 1 month ago (2013-11-14 19:51:49 UTC) #5
oystein (OOO til 10th of July)
szym: net/base/priority_queue* please :)
7 years, 1 month ago (2013-11-14 21:23:29 UTC) #6
szym
https://codereview.chromium.org/23620058/diff/225001/net/base/priority_queue.h File net/base/priority_queue.h (right): https://codereview.chromium.org/23620058/diff/225001/net/base/priority_queue.h#newcode269 net/base/priority_queue.h:269: Pointer NextHighest(const Pointer& previous) { Is this any different ...
7 years, 1 month ago (2013-11-15 01:11:49 UTC) #7
oystein (OOO til 10th of July)
https://codereview.chromium.org/23620058/diff/225001/net/base/priority_queue.h File net/base/priority_queue.h (right): https://codereview.chromium.org/23620058/diff/225001/net/base/priority_queue.h#newcode269 net/base/priority_queue.h:269: Pointer NextHighest(const Pointer& previous) { On 2013/11/15 01:11:49, szym ...
7 years, 1 month ago (2013-11-15 03:02:09 UTC) #8
oystein (OOO til 10th of July)
On 2013/11/15 03:02:09, Oystein wrote: > https://codereview.chromium.org/23620058/diff/225001/net/base/priority_queue.h > File net/base/priority_queue.h (right): > > https://codereview.chromium.org/23620058/diff/225001/net/base/priority_queue.h#newcode269 > ...
7 years, 1 month ago (2013-11-15 19:24:55 UTC) #9
szym
Thanks for the test. LGTM but please rename the test to indicate it exercises GetNextTowardsLastMin. ...
7 years, 1 month ago (2013-11-15 19:48:52 UTC) #10
James Simonsen
lgtm
7 years, 1 month ago (2013-11-15 19:50:51 UTC) #11
oystein (OOO til 10th of July)
Thanks guys! https://codereview.chromium.org/23620058/diff/75002/net/base/priority_queue_unittest.cc File net/base/priority_queue_unittest.cc (right): https://codereview.chromium.org/23620058/diff/75002/net/base/priority_queue_unittest.cc#newcode92 net/base/priority_queue_unittest.cc:92: TEST_F(PriorityQueueTest, FirstMaxOrderWithDeletion) { On 2013/11/15 19:48:52, szym ...
7 years, 1 month ago (2013-11-15 19:52:20 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oysteine@chromium.org/23620058/445001
7 years, 1 month ago (2013-11-15 20:05:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oysteine@chromium.org/23620058/445001
7 years, 1 month ago (2013-11-15 21:46:06 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oysteine@chromium.org/23620058/445001
7 years, 1 month ago (2013-11-16 00:12:13 UTC) #15
commit-bot: I haz the power
7 years, 1 month ago (2013-11-16 01:51:37 UTC) #16
Message was sent while issue was closed.
Change committed as 235491

Powered by Google App Engine
This is Rietveld 408576698