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

Issue 1246493002: Fix Resource Priorities and Scheduling (Blink Side) (Closed)

Created:
5 years, 5 months ago by Pat Meenan
Modified:
5 years, 4 months ago
CC:
blink-reviews, tyoshino+watch_chromium.org, Nate Chapin, gavinp+loader_chromium.org, Yoav Weiss, kinuko
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

This is a field trial for experimenting with several different resource scheduling changes (individually controllable): - Increasing the priority of fonts - Decreasing the priority of late-body scripts - Increasing the priority of Async JS - Reducing the contention during the initial load of head resources Doc that describes the rationale behind all of the changes is here: https://docs.google.com/document/d/1bCDuq9H1ih9iNjgzyAL0gpwNFiEP4TZS-YLRp_RuMlc/edit?usp=sharing Chrome-side of the change is here: https://codereview.chromium.org/1230133005/ BUG=317785, 517902, 517904 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200445

Patch Set 1 : Cleaned up #

Total comments: 4

Patch Set 2 : Simplified priority selection code #

Patch Set 3 : Rebased #

Patch Set 4 : Switched to individual experiment toggles #

Total comments: 7

Patch Set 5 : Added comments #

Total comments: 4

Patch Set 6 : Updated settings check and added assert #

Total comments: 6

Patch Set 7 : Small cleanup of script priorities #

Patch Set 8 : Updated comment #

Total comments: 6

Patch Set 9 : Fixed layering issue with settings check #

Patch Set 10 : Added comment to settings.in #

Patch Set 11 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -9 lines) Patch
M Source/core/fetch/FetchContext.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/fetch/ResourceFetcher.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/fetch/ResourceFetcher.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +36 lines, -8 lines 0 comments Download
M Source/core/fetch/ResourceLoadPriorityOptimizer.cpp View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -0 lines 0 comments Download
M Source/core/fetch/ResourceLoader.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/fetch/ResourceLoader.cpp View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/frame/Settings.in View 1 2 3 4 5 6 7 8 9 10 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/loader/FrameFetchContext.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/loader/FrameFetchContext.cpp View 1 2 3 4 5 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (10 generated)
Bryan McQuade
https://codereview.chromium.org/1246493002/diff/20001/Source/core/fetch/ResourceFetcher.cpp File Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/1246493002/diff/20001/Source/core/fetch/ResourceFetcher.cpp#newcode66 Source/core/fetch/ResourceFetcher.cpp:66: // An image fetch is used to distinguish between ...
5 years, 5 months ago (2015-07-22 17:51:07 UTC) #3
Pat Meenan
https://codereview.chromium.org/1246493002/diff/20001/Source/core/fetch/ResourceFetcher.cpp File Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/1246493002/diff/20001/Source/core/fetch/ResourceFetcher.cpp#newcode66 Source/core/fetch/ResourceFetcher.cpp:66: // An image fetch is used to distinguish between ...
5 years, 4 months ago (2015-07-28 16:55:15 UTC) #4
Pat Meenan
kouhei@chromium.org: PTAL when you get a chance. This is a field trial for several resource ...
5 years, 4 months ago (2015-08-07 16:06:53 UTC) #6
Bryan McQuade
Looks really good. Just a few comments. The only place where I feel like the ...
5 years, 4 months ago (2015-08-07 17:30:40 UTC) #7
Pat Meenan
https://codereview.chromium.org/1246493002/diff/80001/Source/core/fetch/ResourceFetcher.cpp File Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/1246493002/diff/80001/Source/core/fetch/ResourceFetcher.cpp#newcode75 Source/core/fetch/ResourceFetcher.cpp:75: bool increasePriorities = context().fetchIncreasePriorities(); On 2015/08/07 17:30:40, Bryan McQuade ...
5 years, 4 months ago (2015-08-07 21:21:14 UTC) #8
Pat Meenan
japhet@ if you get a chance could you PTAL?
5 years, 4 months ago (2015-08-10 16:54:02 UTC) #10
Bryan McQuade
https://codereview.chromium.org/1246493002/diff/80001/Source/core/fetch/ResourceFetcher.cpp File Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/1246493002/diff/80001/Source/core/fetch/ResourceFetcher.cpp#newcode81 Source/core/fetch/ResourceFetcher.cpp:81: return increasePriorities ? ResourceLoadPriorityVeryHigh : ResourceLoadPriorityHigh; Ah, interesting, didn't ...
5 years, 4 months ago (2015-08-10 19:27:09 UTC) #11
Pat Meenan
As far as complexity goes, I don't see a good way to make it any ...
5 years, 4 months ago (2015-08-10 20:21:17 UTC) #12
kouhei (in TOK)
Wow. Looks great to me. I'm also a bit worried about m_imageFetched, but I'm not ...
5 years, 4 months ago (2015-08-11 01:40:34 UTC) #13
kouhei (in TOK)
+ksakamoto: FYI for font loading prioritization.
5 years, 4 months ago (2015-08-11 03:48:40 UTC) #15
Bryan McQuade
Basically LGTM with these comments addressed (though I'm not a committer). https://codereview.chromium.org/1246493002/diff/120001/Source/core/fetch/ResourceFetcher.cpp File Source/core/fetch/ResourceFetcher.cpp (right): ...
5 years, 4 months ago (2015-08-11 13:05:13 UTC) #16
Pat Meenan
On 2015/08/11 01:40:34, kouhei wrote: > Wow. Looks great to me. > > I'm also ...
5 years, 4 months ago (2015-08-11 13:14:38 UTC) #17
Pat Meenan
https://codereview.chromium.org/1246493002/diff/120001/Source/core/fetch/ResourceFetcher.cpp File Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/1246493002/diff/120001/Source/core/fetch/ResourceFetcher.cpp#newcode99 Source/core/fetch/ResourceFetcher.cpp:99: if (increasePriorities && !request.forPreload()) On 2015/08/11 13:05:12, Bryan McQuade ...
5 years, 4 months ago (2015-08-11 14:18:40 UTC) #18
Bryan McQuade
On 2015/08/11 14:18:40, Pat Meenan wrote: > https://codereview.chromium.org/1246493002/diff/120001/Source/core/fetch/ResourceFetcher.cpp > File Source/core/fetch/ResourceFetcher.cpp (right): > > https://codereview.chromium.org/1246493002/diff/120001/Source/core/fetch/ResourceFetcher.cpp#newcode99 ...
5 years, 4 months ago (2015-08-11 14:40:02 UTC) #19
Pat Meenan
On 2015/08/11 14:40:02, Bryan McQuade wrote: > On 2015/08/11 14:18:40, Pat Meenan wrote: > > ...
5 years, 4 months ago (2015-08-11 16:18:36 UTC) #20
Nate Chapin
Sorry for being slow to review. https://codereview.chromium.org/1246493002/diff/160001/Source/core/fetch/DEPS File Source/core/fetch/DEPS (right): https://codereview.chromium.org/1246493002/diff/160001/Source/core/fetch/DEPS#newcode5 Source/core/fetch/DEPS:5: "+core/frame/Settings.h", This is ...
5 years, 4 months ago (2015-08-11 17:41:56 UTC) #21
Pat Meenan
https://codereview.chromium.org/1246493002/diff/160001/Source/core/fetch/DEPS File Source/core/fetch/DEPS (right): https://codereview.chromium.org/1246493002/diff/160001/Source/core/fetch/DEPS#newcode5 Source/core/fetch/DEPS:5: "+core/frame/Settings.h", On 2015/08/11 17:41:55, Nate Chapin wrote: > This ...
5 years, 4 months ago (2015-08-11 18:50:10 UTC) #22
Nate Chapin
LGTM https://codereview.chromium.org/1246493002/diff/160001/Source/core/fetch/FetchContext.h File Source/core/fetch/FetchContext.h (right): https://codereview.chromium.org/1246493002/diff/160001/Source/core/fetch/FetchContext.h#newcode114 Source/core/fetch/FetchContext.h:114: virtual bool fetchIncreasePriorities() const { return false; } ...
5 years, 4 months ago (2015-08-12 21:13:48 UTC) #23
Pat Meenan
https://codereview.chromium.org/1246493002/diff/160001/Source/core/fetch/FetchContext.h File Source/core/fetch/FetchContext.h (right): https://codereview.chromium.org/1246493002/diff/160001/Source/core/fetch/FetchContext.h#newcode114 Source/core/fetch/FetchContext.h:114: virtual bool fetchIncreasePriorities() const { return false; } On ...
5 years, 4 months ago (2015-08-12 21:48:22 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1246493002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1246493002/200001
5 years, 4 months ago (2015-08-12 21:49:00 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: android_blink_compile_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/android_blink_compile_rel/builds/45831) blink_presubmit on tryserver.blink (JOB_FAILED, ...
5 years, 4 months ago (2015-08-12 21:51:58 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1246493002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1246493002/220001
5 years, 4 months ago (2015-08-13 00:13:06 UTC) #32
commit-bot: I haz the power
5 years, 4 months ago (2015-08-13 01:34:23 UTC) #33
Message was sent while issue was closed.
Committed patchset #11 (id:220001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=200445

Powered by Google App Engine
This is Rietveld 408576698