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

Issue 2399973003: prerender: Don't set the priority to net::IDLE on Android. (Closed)

Created:
4 years, 2 months ago by Benoit L
Modified:
4 years, 2 months ago
CC:
chromium-reviews, loading-reviews_chromium.org, Charlie Harrison
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

prerender: Don't set the priority to net::IDLE on Android. Resource requests issued by prerendering renderers have their priority set to net::IDLE. This causes issues with content::ResourceScheduler, leading to very poor loading performance for prerendered content. This simply disables the prioritization on Android, as this is where the priority lowering is the most problematic, and where potential downsides from this patch are the most limited. This is a temporary fix. BUG=652746 Committed: https://crrev.com/915cfe1d23cf249cff0b51b6f2a7434035d5e6c5 Cr-Commit-Position: refs/heads/master@{#424131}

Patch Set 1 #

Total comments: 6

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : Rebase + Address comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -7 lines) Patch
M chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 chunks +18 lines, -7 lines 0 comments Download

Messages

Total messages: 39 (19 generated)
Benoit L
4 years, 2 months ago (2016-10-07 08:58:37 UTC) #4
droger
lgtm https://codereview.chromium.org/2399973003/diff/1/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc File chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc (right): https://codereview.chromium.org/2399973003/diff/1/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc#newcode426 chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc:426: // disabled only on Android, as the prerenders ...
4 years, 2 months ago (2016-10-07 09:08:23 UTC) #5
Benoit L
Thanks! https://codereview.chromium.org/2399973003/diff/1/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc File chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc (right): https://codereview.chromium.org/2399973003/diff/1/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc#newcode426 chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc:426: // disabled only on Android, as the prerenders ...
4 years, 2 months ago (2016-10-07 09:27:35 UTC) #8
Benoit L
Hi mmenke, Please take a look at this patch. For more detail, you can refer ...
4 years, 2 months ago (2016-10-07 11:35:55 UTC) #14
Randy Smith (Not in Mondays)
CC csharrison@ for pre-render weirdness. What's the long-term plan for a fix? (Naively, I'd think ...
4 years, 2 months ago (2016-10-07 13:16:38 UTC) #15
Randy Smith (Not in Mondays)
Arggh; +csharrison for real this time.
4 years, 2 months ago (2016-10-07 13:17:02 UTC) #16
Randy Smith (Not in Mondays)
I'm also surprised that this fix won't cause other, fairly major, performance problems with pre-renders ...
4 years, 2 months ago (2016-10-07 13:19:01 UTC) #18
Benoit L
On 2016/10/07 13:19:01, Randy Smith - Not in Mondays wrote: > I'm also surprised that ...
4 years, 2 months ago (2016-10-07 13:25:16 UTC) #19
mmenke
On 2016/10/07 13:25:16, Benoit L wrote: > On 2016/10/07 13:19:01, Randy Smith - Not in ...
4 years, 2 months ago (2016-10-07 15:38:37 UTC) #20
Benoit L
On 2016/10/07 15:38:37, mmenke wrote: > On 2016/10/07 13:25:16, Benoit L wrote: > > On ...
4 years, 2 months ago (2016-10-07 15:59:10 UTC) #21
Charlie Harrison
drive-by: I'm happy with this patch, but could you refactor the logic a bit? It ...
4 years, 2 months ago (2016-10-07 16:11:14 UTC) #23
Randy Smith (Not in Mondays)
On 2016/10/07 15:59:10, Benoit L wrote: > On 2016/10/07 15:38:37, mmenke wrote: > > On ...
4 years, 2 months ago (2016-10-07 16:14:58 UTC) #24
Benoit L
On 2016/10/07 16:14:58, Randy Smith - Not in Mondays wrote: > On 2016/10/07 15:59:10, Benoit ...
4 years, 2 months ago (2016-10-07 16:21:56 UTC) #25
Randy Smith (Not in Mondays)
On 2016/10/07 16:21:56, Benoit L wrote: > On 2016/10/07 16:14:58, Randy Smith - Not in ...
4 years, 2 months ago (2016-10-07 16:37:10 UTC) #26
mmenke
On 2016/10/07 16:37:10, Randy Smith - Not in Mondays wrote: > On 2016/10/07 16:21:56, Benoit ...
4 years, 2 months ago (2016-10-07 16:55:24 UTC) #27
droger
On 2016/10/07 16:37:10, Randy Smith - Not in Mondays wrote: > Actually, I think the ...
4 years, 2 months ago (2016-10-10 11:04:06 UTC) #32
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/2399973003/60001
4 years, 2 months ago (2016-10-10 11:08:01 UTC) #35
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-10 11:14:28 UTC) #36
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/915cfe1d23cf249cff0b51b6f2a7434035d5e6c5 Cr-Commit-Position: refs/heads/master@{#424131}
4 years, 2 months ago (2016-10-10 11:16:40 UTC) #38
Randy Smith (Not in Mondays)
4 years, 2 months ago (2016-10-11 13:39:04 UTC) #39
Message was sent while issue was closed.
On 2016/10/10 11:04:06, droger wrote:
> On 2016/10/07 16:37:10, Randy Smith - Not in Mondays wrote:
> > Actually, I think the right long-term solution is reprioritizing the
requests
> > associated with a pre-render when it becomes an actual navigation
(especially
> > since these navigations really are pre-renders, just pre-renders that may be
> > more likely to turn into actual navigations and less likely to compete with
> > other work Chrome's trying to do).  That might show up bugs in the netstack
> > around reprioritization, but that's ok; I'd like to fix those too :-}.
> 
> Doing this would certainly improve things, since it would avoid prerender to
> have worse performance than a normal load, and stop prerender from being
> actually harmful.
> But I am not sure this is enough, since prerender will remain very slow when
not
> displayed, which kindof defeats the point of prerender.

We should have this debate on a bug that's tracking the long-term fix.  Is the
one attached to this CL a good one?

Powered by Google App Engine
This is Rietveld 408576698