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

Issue 180843016: Cache total_delayable_count for in_flight_requests in ResourceScheduler (Closed)

Created:
6 years, 9 months ago by hong.zheng
Modified:
6 years, 8 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, mmenke
Base URL:
https://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Cache total_delayable_count for in_flight_requests in ResourceScheduler In ResourceScheduler::GetNumDelayableRequestsInFlight, total_delayable_count has no relation to active_request_host, so we do not need to compute it for each request. The patch can boost BrowsingBench workload >5% performance. BUG=347454 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266165

Patch Set 1 #

Total comments: 7

Patch Set 2 : turn Client into a class, add unittest #

Total comments: 20

Patch Set 3 : move most of logic in ResourceScheduler to Client #

Total comments: 5

Patch Set 4 : change indentation #

Patch Set 5 : rebase #

Total comments: 6

Patch Set 6 : new accounting in ReprioritizeRequest #

Total comments: 2

Patch Set 7 : add delayable state to ScheduledResourceRequest #

Total comments: 12

Patch Set 8 : update accounting method #

Unified diffs Side-by-side diffs Delta from patch set Stats (+317 lines, -228 lines) Patch
M AUTHORS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/resource_scheduler.h View 1 2 3 4 3 chunks +1 line, -27 lines 0 comments Download
M content/browser/loader/resource_scheduler.cc View 1 2 3 4 5 6 7 13 chunks +284 lines, -201 lines 0 comments Download
M content/browser/loader/resource_scheduler_unittest.cc View 1 2 3 4 5 6 7 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 55 (0 generated)
hong.zheng
simonjam@, could you please review this CL? Thanks in advance Hong
6 years, 9 months ago (2014-03-05 01:30:32 UTC) #1
hong.zheng
6 years, 9 months ago (2014-03-05 01:39:36 UTC) #2
James Simonsen
I've never heard of this benchmark and I'm surprised something like this shows up on ...
6 years, 9 months ago (2014-03-05 02:30:59 UTC) #3
hong.zheng
Thanks for comments! On 2014/03/05 02:30:59, James Simonsen wrote: > I've never heard of this ...
6 years, 9 months ago (2014-03-12 08:49:45 UTC) #4
hong.zheng
PTAL Thanks
6 years, 9 months ago (2014-03-12 08:52:45 UTC) #5
James Simonsen
Sorry I was away on vacation. I'll get to the rest of this in a ...
6 years, 9 months ago (2014-03-17 21:11:55 UTC) #6
hong.zheng
The CQ bit was checked by hong.zheng@intel.com
6 years, 9 months ago (2014-03-19 07:06:02 UTC) #7
hong.zheng
The CQ bit was unchecked by hong.zheng@intel.com
6 years, 9 months ago (2014-03-19 07:06:02 UTC) #8
hong.zheng
Thanks for your reply and help. On 2014/03/17 21:11:55, James Simonsen wrote: > Sorry I ...
6 years, 9 months ago (2014-03-19 11:59:41 UTC) #9
James Simonsen
On 2014/03/19 11:59:41, hong.zheng wrote: > Thanks for your reply and help. > > On ...
6 years, 9 months ago (2014-03-19 20:31:09 UTC) #10
hong.zheng
On 2014/03/19 20:31:09, James Simonsen wrote: > Honestly, I don't even work on Chromium any ...
6 years, 9 months ago (2014-03-20 01:35:45 UTC) #11
kenneth.r.christiansen
6 years, 9 months ago (2014-03-20 11:01:02 UTC) #12
James Simonsen
On 2014/03/12 08:49:45, hong.zheng wrote: > > If we were to turn this into a ...
6 years, 9 months ago (2014-03-21 01:58:09 UTC) #13
hong.zheng
Thank you. On 2014/03/21 01:58:09, James Simonsen wrote: > On 2014/03/12 08:49:45, hong.zheng wrote: > ...
6 years, 9 months ago (2014-03-27 10:50:52 UTC) #14
James Simonsen
This is looking great. Thanks! Any progress on the Telemetry benchmark? It's important that we ...
6 years, 9 months ago (2014-03-27 22:19:56 UTC) #15
hong.zheng
Thanks On 2014/03/27 22:19:56, James Simonsen wrote: > This is looking great. Thanks! > > ...
6 years, 8 months ago (2014-04-03 11:49:47 UTC) #16
James Simonsen
lgtm Looks great. Thanks for your patience. On 2014/04/03 11:49:47, hong.zheng wrote: https://codereview.chromium.org/180843016/diff/20001/content/browser/loader/resource_scheduler.cc#newcode606 > > ...
6 years, 8 months ago (2014-04-07 19:57:44 UTC) #17
hong.zheng
The CQ bit was checked by hong.zheng@intel.com
6 years, 8 months ago (2014-04-09 00:29:08 UTC) #18
hong.zheng
The CQ bit was unchecked by hong.zheng@intel.com
6 years, 8 months ago (2014-04-09 00:32:42 UTC) #19
hong.zheng
The CQ bit was checked by hong.zheng@intel.com
6 years, 8 months ago (2014-04-09 00:32:42 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hong.zheng@intel.com/180843016/60001
6 years, 8 months ago (2014-04-09 00:39:43 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-09 00:39:52 UTC) #22
commit-bot: I haz the power
Failed to apply patch for AUTHORS: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-04-09 00:39:52 UTC) #23
hong.zheng
The CQ bit was checked by hong.zheng@intel.com
6 years, 8 months ago (2014-04-10 11:09:59 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hong.zheng@intel.com/180843016/80001
6 years, 8 months ago (2014-04-10 11:10:10 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-10 12:04:23 UTC) #26
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=60605
6 years, 8 months ago (2014-04-10 12:04:23 UTC) #27
hong.zheng
The CQ bit was unchecked by hong.zheng@intel.com
6 years, 8 months ago (2014-04-11 00:44:29 UTC) #28
hong.zheng
The CQ bit was checked by hong.zheng@intel.com
6 years, 8 months ago (2014-04-11 00:44:31 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hong.zheng@intel.com/180843016/80001
6 years, 8 months ago (2014-04-11 00:44:56 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-11 01:11:37 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel tryserver.chromium on linux_chromium_rel
6 years, 8 months ago (2014-04-11 01:11:37 UTC) #32
hong.zheng
The CQ bit was checked by hong.zheng@intel.com
6 years, 8 months ago (2014-04-11 01:15:14 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hong.zheng@intel.com/180843016/80001
6 years, 8 months ago (2014-04-11 01:15:47 UTC) #34
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-11 01:54:31 UTC) #35
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=60845
6 years, 8 months ago (2014-04-11 01:54:32 UTC) #36
hong.zheng
The CQ bit was checked by hong.zheng@intel.com
6 years, 8 months ago (2014-04-11 05:19:36 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hong.zheng@intel.com/180843016/80001
6 years, 8 months ago (2014-04-11 05:20:07 UTC) #38
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-11 06:03:00 UTC) #39
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=60883
6 years, 8 months ago (2014-04-11 06:03:01 UTC) #40
hong.zheng
The CQ bit was checked by hong.zheng@intel.com
6 years, 8 months ago (2014-04-14 01:25:36 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hong.zheng@intel.com/180843016/80001
6 years, 8 months ago (2014-04-14 01:25:48 UTC) #42
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-14 02:02:09 UTC) #43
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=61125
6 years, 8 months ago (2014-04-14 02:02:10 UTC) #44
hong.zheng
davidben@, PTAL, because simonjam@ has been removed from the OWNERS file.
6 years, 8 months ago (2014-04-16 01:11:33 UTC) #45
davidben
Sorry about having comments for you after you already got a review from simonjam. Mostly ...
6 years, 8 months ago (2014-04-16 16:44:09 UTC) #46
hong.zheng
Thanks for comments. On 2014/04/16 16:44:09, David Benjamin wrote: > Sorry about having comments for ...
6 years, 8 months ago (2014-04-17 08:12:41 UTC) #47
davidben
https://codereview.chromium.org/180843016/diff/100001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/180843016/diff/100001/content/browser/loader/resource_scheduler.cc#newcode282 content/browser/loader/resource_scheduler.cc:282: bool was_delayable_request = IsDelayableInFlightRequest(request); Sorry, I wasn't clear, though ...
6 years, 8 months ago (2014-04-17 18:38:06 UTC) #48
hong.zheng
Sorry for late reply, because of a travel On 2014/04/17 18:38:06, David Benjamin wrote: > ...
6 years, 8 months ago (2014-04-22 15:07:21 UTC) #49
davidben
Thanks for the test! A few additional comments below. https://codereview.chromium.org/180843016/diff/120001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/180843016/diff/120001/content/browser/loader/resource_scheduler.cc#newcode201 content/browser/loader/resource_scheduler.cc:201: ...
6 years, 8 months ago (2014-04-23 19:14:34 UTC) #50
hong.zheng
Thanks for comments. On 2014/04/23 19:14:34, David Benjamin wrote: > Thanks for the test! A ...
6 years, 8 months ago (2014-04-24 06:43:40 UTC) #51
davidben
LGTM. Thanks for bearing through the extra round of comments.
6 years, 8 months ago (2014-04-24 19:44:00 UTC) #52
hong.zheng
The CQ bit was checked by hong.zheng@intel.com
6 years, 8 months ago (2014-04-25 00:46:49 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hong.zheng@intel.com/180843016/140001
6 years, 8 months ago (2014-04-25 00:48:26 UTC) #54
commit-bot: I haz the power
6 years, 8 months ago (2014-04-25 08:55:51 UTC) #55
Message was sent while issue was closed.
Change committed as 266165

Powered by Google App Engine
This is Rietveld 408576698