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

Issue 146333004: Introduce an intra-priority level sorting value - Chromium Side (Closed)

Created:
6 years, 10 months ago by shatch
Modified:
4 years, 10 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, jochen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

This CL adds an intra-priority level sorting value for finer grained control of resource loading. The blink side of this patch sorts visible images by estimated on screen real-estate, preferring to download images with more visual impact first. Ie. On a page with a large banner, and dozens of small icons, the large banner will most likely be scheduled ahead of the others. In the future, we can also use this to experiment with other signals, ie. prioritize by distance to viewport. This needs https://codereview.chromium.org/153983004/ to land first. In our tests, this was a nice win on speed-index for desktop, with a gain of about ~2-3%. BUG=319073 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260665 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262204

Patch Set 1 : #

Total comments: 10

Patch Set 2 : Changes from review. #

Total comments: 1

Patch Set 3 : Changes from review. #

Total comments: 2

Patch Set 4 : Changes from review. #

Total comments: 3

Patch Set 5 : Changes from review. #

Patch Set 6 : Upload again. #

Total comments: 6

Patch Set 7 : Changes from review. #

Patch Set 8 : Rebase. #

Patch Set 9 : Added expectation. #

Patch Set 10 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -90 lines) Patch
M content/browser/loader/resource_scheduler.h View 1 2 3 4 2 chunks +7 lines, -1 line 0 comments Download
M content/browser/loader/resource_scheduler.cc View 1 2 3 4 5 6 14 chunks +116 lines, -64 lines 0 comments Download
M content/browser/loader/resource_scheduler_unittest.cc View 1 2 3 4 5 6 7 2 chunks +26 lines, -2 lines 0 comments Download
M content/child/resource_dispatcher.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M content/child/resource_dispatcher.cc View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -5 lines 0 comments Download
M content/child/web_url_loader_impl.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M content/child/web_url_loader_impl.cc View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -5 lines 0 comments Download
M content/common/resource_messages.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M content/shell/renderer/test_runner/WebFrameTestProxy.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download
M content/shell/renderer/test_runner/WebTestProxy.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M content/shell/renderer/test_runner/WebTestProxy.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -1 line 0 comments Download
M webkit/child/resource_loader_bridge.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 35 (1 generated)
shatch
6 years, 10 months ago (2014-02-06 19:49:55 UTC) #1
James Simonsen
Have you considered how you're going to land this? You'll probably need three check-ins. https://codereview.chromium.org/146333004/diff/140001/content/browser/loader/resource_scheduler.cc ...
6 years, 10 months ago (2014-02-07 03:45:09 UTC) #2
shatch
New snapshot uploaded, ptal. To land it, there's an old post by Darin on chromium-dev, ...
6 years, 10 months ago (2014-02-10 19:55:47 UTC) #3
James Simonsen
lgtm https://codereview.chromium.org/146333004/diff/330001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/146333004/diff/330001/content/browser/loader/resource_scheduler.cc#newcode398 content/browser/loader/resource_scheduler.cc:398: for (;request_iter != client->pending_requests.End();) { while()?
6 years, 10 months ago (2014-02-10 20:46:42 UTC) #4
shatch
ptal Should be mostly just getting the intra priority value from blink to the resource ...
6 years, 10 months ago (2014-02-21 21:42:34 UTC) #5
Chris Evans
resource_messages.h LGTM (with a question but I think we're ok) https://codereview.chromium.org/146333004/diff/380001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/146333004/diff/380001/content/browser/loader/resource_scheduler.cc#newcode362 ...
6 years, 10 months ago (2014-02-21 22:42:30 UTC) #6
shatch
https://codereview.chromium.org/146333004/diff/380001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/146333004/diff/380001/content/browser/loader/resource_scheduler.cc#newcode362 content/browser/loader/resource_scheduler.cc:362: (old_intra_priority != new_intra_priority_value)); On 2014/02/21 22:42:30, Chris Evans wrote: ...
6 years, 9 months ago (2014-02-25 18:48:33 UTC) #7
shatch
ping darin On 2014/02/25 18:48:33, shatch wrote: > https://codereview.chromium.org/146333004/diff/380001/content/browser/loader/resource_scheduler.cc > File content/browser/loader/resource_scheduler.cc (right): > > ...
6 years, 9 months ago (2014-02-27 19:40:57 UTC) #8
darin (slow to review)
Apologies for the delay in providing review feedback. In general, this approach seems rational, but ...
6 years, 9 months ago (2014-02-28 05:14:11 UTC) #9
shatch
On 2014/02/28 05:14:11, darin wrote: > Apologies for the delay in providing review feedback. In ...
6 years, 9 months ago (2014-02-28 20:40:52 UTC) #10
darin (slow to review)
On Fri, Feb 28, 2014 at 12:40 PM, <simonhatch@chromium.org> wrote: > On 2014/02/28 05:14:11, darin ...
6 years, 9 months ago (2014-02-28 21:17:23 UTC) #11
shatch
New snapshot uploaded, ptal. https://codereview.chromium.org/146333004/diff/440001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/146333004/diff/440001/content/browser/loader/resource_scheduler.cc#newcode173 content/browser/loader/resource_scheduler.cc:173: if (a->priority() != b->priority()) On ...
6 years, 9 months ago (2014-03-03 18:57:15 UTC) #12
shatch
ping darin ptal On 2014/03/03 18:57:15, shatch wrote: > New snapshot uploaded, ptal. > > ...
6 years, 9 months ago (2014-03-10 18:25:58 UTC) #13
darin (slow to review)
LGTM w/ nits fixed. I think it would be worthwhile to invent a combined priority ...
6 years, 9 months ago (2014-03-24 18:23:33 UTC) #14
shatch
Thanks, will follow up with struct suggestion once this lands. https://codereview.chromium.org/146333004/diff/460002/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/146333004/diff/460002/content/browser/loader/resource_scheduler.cc#newcode32 ...
6 years, 9 months ago (2014-03-24 21:08:44 UTC) #15
shatch
The CQ bit was checked by simonhatch@chromium.org
6 years, 8 months ago (2014-03-28 16:35:12 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonhatch@chromium.org/146333004/490001
6 years, 8 months ago (2014-03-28 16:35:31 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-28 16:36:26 UTC) #18
commit-bot: I haz the power
Failed to apply patch for webkit/child/weburlloader_impl.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; can't find ...
6 years, 8 months ago (2014-03-28 16:36:27 UTC) #19
shatch
The CQ bit was checked by simonhatch@chromium.org
6 years, 8 months ago (2014-03-31 15:12:48 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonhatch@chromium.org/146333004/510001
6 years, 8 months ago (2014-03-31 15:12:56 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-31 19:56:52 UTC) #22
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, cacheinvalidation_unittests, cc_unittests, check_deps, ...
6 years, 8 months ago (2014-03-31 19:56:53 UTC) #23
shatch
The CQ bit was checked by simonhatch@chromium.org
6 years, 8 months ago (2014-03-31 20:08:56 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonhatch@chromium.org/146333004/510001
6 years, 8 months ago (2014-03-31 20:09:24 UTC) #25
commit-bot: I haz the power
Change committed as 260665
6 years, 8 months ago (2014-03-31 21:59:53 UTC) #26
tkent
A revert of this CL has been created in https://codereview.chromium.org/220553002/ by tkent@chromium.org. The reason for ...
6 years, 8 months ago (2014-04-01 04:09:35 UTC) #27
shatch
The CQ bit was checked by simonhatch@chromium.org
6 years, 8 months ago (2014-04-07 18:01:15 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonhatch@chromium.org/146333004/540001
6 years, 8 months ago (2014-04-07 18:01:47 UTC) #29
commit-bot: I haz the power
Change committed as 262204
6 years, 8 months ago (2014-04-07 22:02:41 UTC) #30
mmenke
On 2014/04/07 22:02:41, commit-bot: I haz the power wrote: > Change committed as 262204 Hrm...I ...
4 years, 10 months ago (2016-01-26 17:52:21 UTC) #31
mmenke
On 2016/01/26 17:52:21, mmenke wrote: > On 2014/04/07 22:02:41, commit-bot: I haz the power wrote: ...
4 years, 10 months ago (2016-01-26 17:57:28 UTC) #32
shatch
On 2016/01/26 17:57:28, mmenke wrote: > On 2016/01/26 17:52:21, mmenke wrote: > > On 2014/04/07 ...
4 years, 10 months ago (2016-01-26 18:04:08 UTC) #34
mmenke
4 years, 10 months ago (2016-01-26 18:26:18 UTC) #35
Message was sent while issue was closed.
On 2016/01/26 18:04:08, shatch wrote:
> On 2016/01/26 17:57:28, mmenke wrote:
> > On 2016/01/26 17:52:21, mmenke wrote:
> > > On 2014/04/07 22:02:41, commit-bot: I haz the power wrote:
> > > > Change committed as 262204
> > > 
> > > Hrm...I think this CL really should have gone through a
> content/browser/loader
> > > owner.
> > 
> > Also no bug was filed for this feature, so there's no context here.
> 
> Apologies for the lack of bug, I believe this was a followup to
> crbug.com/319073. I'll update the description.
> 
> About the lack of owner for content/browser/loader, I believe simonjam was an
> owner at the time, although digging through git logs it looks like he was
> removed from the OWNERS file shortly after his lgtm and I never noticed
> (https://codereview.chromium.org/146313008).

Thanks!  I had forgotten he was the owner before david and I (I always think of
jam as being the former owner, forgot it went to simonjam before us).

Powered by Google App Engine
This is Rietveld 408576698