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

Issue 2711633003: Reland of [ResourceScheduler] Yield after starting several requests (Closed)

Created:
3 years, 10 months ago by jkarlin
Modified:
3 years, 10 months ago
CC:
chromium-reviews, loading-reviews_chromium.org, jam, darin-cc_chromium.org, Randy Smith (Not in Mondays), mmenke
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland of [ResourceScheduler] Yield after starting several requests (patchset #1 id:1 of https://codereview.chromium.org/2708323002/ ) The original patch was reverted because it delayed non-http(s) requests. This reland fixes that issue. Original issue's description: > Revert of [ResourceScheduler] Yield after starting several requests (patchset #9 id:240001 of https://codereview.chromium.org/2682163002/ ) > > Reason for revert: > Regresses blob requests making them delayable. > > Original issue's description: > > [ResourceScheduler] Yield after starting several requests > > > > This CL periodically yields the ResourceScheduler after starting several > > requests. This gives existing IO tasks (such as active network requests) a > > chance to run between network starts. This should result in less jank and more > > interleaved network request tasks. > > > > BUG=655585 > > > > Review-Url: https://codereview.chromium.org/2682163002 > > Cr-Commit-Position: refs/heads/master@{#449895} > > Committed: https://chromium.googlesource.com/chromium/src/+/1a8d5f3805dbae5242cf7dce14df3807344dae37 > > TBR=csharrison@chromium.org,isherman@chromium.org,jkarlin@chromium.org > # Not skipping CQ checks because original CL landed more than 1 days ago. > BUG=655585 > > Review-Url: https://codereview.chromium.org/2708323002 > Cr-Commit-Position: refs/heads/master@{#451946} > Committed: https://chromium.googlesource.com/chromium/src/+/a9757ebf44c92e009d075322ad35f008b0bfa1ad BUG=655585 Review-Url: https://codereview.chromium.org/2711633003 Cr-Commit-Position: refs/heads/master@{#452216} Committed: https://chromium.googlesource.com/chromium/src/+/bf88dc8ed93ded5866c4c2965803ae24d89050b6

Patch Set 1 #

Patch Set 2 : Add test, see that it breaks without fix #

Patch Set 3 : Fix, and now tests pass #

Total comments: 10

Patch Set 4 : Address comments from PS3 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -8 lines) Patch
M content/browser/loader/resource_scheduler.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/loader/resource_scheduler.cc View 1 2 3 16 chunks +89 lines, -8 lines 0 comments Download
M content/browser/loader/resource_scheduler_unittest.cc View 1 2 3 4 chunks +122 lines, -0 lines 0 comments Download
M testing/variations/fieldtrial_testing_config.json View 1 1 chunk +19 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 39 (25 generated)
jkarlin
Created Reland of [ResourceScheduler] Yield after starting several requests
3 years, 10 months ago (2017-02-22 15:14:22 UTC) #1
jkarlin
csharrison@chromium.org: PTAL. The logic is a bit different now, it's in ShouldStartRequest. isherman@chromium.org: Please review ...
3 years, 10 months ago (2017-02-22 16:41:21 UTC) #14
Ilya Sherman
On 2017/02/22 16:41:21, jkarlin wrote: > isherman@chromium.org: Please review changes in testing/variations/ Did anything change ...
3 years, 10 months ago (2017-02-22 16:44:01 UTC) #15
jkarlin
On 2017/02/22 16:44:01, Ilya Sherman wrote: > On 2017/02/22 16:41:21, jkarlin wrote: > > mailto:isherman@chromium.org: ...
3 years, 10 months ago (2017-02-22 16:48:31 UTC) #16
Charlie Harrison
lg mostly nits https://codereview.chromium.org/2711633003/diff/140001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/2711633003/diff/140001/content/browser/loader/resource_scheduler.cc#newcode777 content/browser/loader/resource_scheduler.cc:777: void ResumeAfterYielding() { nit: I think ...
3 years, 10 months ago (2017-02-22 17:42:14 UTC) #19
jkarlin
Addressed comments. PTAL, thanks! https://codereview.chromium.org/2711633003/diff/140001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/2711633003/diff/140001/content/browser/loader/resource_scheduler.cc#newcode777 content/browser/loader/resource_scheduler.cc:777: void ResumeAfterYielding() { On 2017/02/22 ...
3 years, 10 months ago (2017-02-22 17:49:25 UTC) #21
Charlie Harrison
LGTM
3 years, 10 months ago (2017-02-22 17:52:56 UTC) #23
jkarlin
https://codereview.chromium.org/2711633003/diff/140001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/2711633003/diff/140001/content/browser/loader/resource_scheduler.cc#newcode863 content/browser/loader/resource_scheduler.cc:863: bool did_scheduler_yield_; On 2017/02/22 17:49:25, jkarlin wrote: > On ...
3 years, 10 months ago (2017-02-22 17:58:37 UTC) #24
Charlie Harrison
https://codereview.chromium.org/2711633003/diff/140001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/2711633003/diff/140001/content/browser/loader/resource_scheduler.cc#newcode863 content/browser/loader/resource_scheduler.cc:863: bool did_scheduler_yield_; On 2017/02/22 17:58:37, jkarlin wrote: > On ...
3 years, 10 months ago (2017-02-22 18:01:37 UTC) #25
jkarlin
isherman@: PTAL at testing/variations/. Nothing changed since your approval pre-revert. Thanks!
3 years, 10 months ago (2017-02-22 18:04:22 UTC) #26
Ilya Sherman
On 2017/02/22 18:04:22, jkarlin wrote: > isherman@: PTAL at testing/variations/. Nothing changed since your approval ...
3 years, 10 months ago (2017-02-22 20:22:29 UTC) #33
jkarlin
On 2017/02/22 20:22:29, Ilya Sherman wrote: > On 2017/02/22 18:04:22, jkarlin wrote: > > isherman@: ...
3 years, 10 months ago (2017-02-22 21:27:02 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2711633003/160001
3 years, 10 months ago (2017-02-22 21:27:09 UTC) #36
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 21:40:45 UTC) #39
Message was sent while issue was closed.
Committed patchset #4 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/bf88dc8ed93ded5866c4c2965803...

Powered by Google App Engine
This is Rietveld 408576698