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

Issue 2450293002: Tune web page background fetching (Closed)

Created:
4 years, 1 month ago by Pete Williamson
Modified:
4 years, 1 month ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, dewittj+watch_chromium.org, tburkard+watch_chromium.org, fgorski+watch_chromium.org, romax+watch_chromium.org, petewil+watch_chromium.org, gavinp+prer_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Tune web page background fetching 1. Treat timeout attempts as a completed attempt, not a started attempt. 2. Disable NQE check before doing immediate loading 3. Increase timing on OnDomContentLoaded to allow for poor 2G networks. BUG=659723 Committed: https://crrev.com/11aeb394f106f8ee8dccd0b01d03d107ae535c44 Cr-Commit-Position: refs/heads/master@{#428506}

Patch Set 1 #

Total comments: 4

Patch Set 2 : CR fixes per DougArnett #

Total comments: 4

Patch Set 3 : CR feedback per DougArnett #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -9 lines) Patch
M chrome/browser/android/offline_pages/prerendering_loader.cc View 1 2 chunks +9 lines, -1 line 0 comments Download
M components/offline_pages/background/request_coordinator.cc View 1 2 5 chunks +11 lines, -6 lines 0 comments Download
M components/offline_pages/background/request_coordinator_unittest.cc View 1 5 chunks +18 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (8 generated)
Pete Williamson
4 years, 1 month ago (2016-10-26 17:54:59 UTC) #2
Pete Williamson
4 years, 1 month ago (2016-10-26 17:55:14 UTC) #4
dougarnett
https://codereview.chromium.org/2450293002/diff/1/chrome/browser/android/offline_pages/prerendering_loader.cc File chrome/browser/android/offline_pages/prerendering_loader.cc (right): https://codereview.chromium.org/2450293002/diff/1/chrome/browser/android/offline_pages/prerendering_loader.cc#newcode19 chrome/browser/android/offline_pages/prerendering_loader.cc:19: long kOfflinePageDclDelayMilliseconds = 25000; Milliseconds => Ms ? [recent_tab_helper ...
4 years, 1 month ago (2016-10-26 23:23:26 UTC) #5
Pete Williamson
https://codereview.chromium.org/2450293002/diff/1/chrome/browser/android/offline_pages/prerendering_loader.cc File chrome/browser/android/offline_pages/prerendering_loader.cc (right): https://codereview.chromium.org/2450293002/diff/1/chrome/browser/android/offline_pages/prerendering_loader.cc#newcode19 chrome/browser/android/offline_pages/prerendering_loader.cc:19: long kOfflinePageDclDelayMilliseconds = 25000; On 2016/10/26 23:23:26, dougarnett wrote: ...
4 years, 1 month ago (2016-10-28 00:39:44 UTC) #6
dougarnett
lgtm with comments https://codereview.chromium.org/2450293002/diff/20001/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (left): https://codereview.chromium.org/2450293002/diff/20001/components/offline_pages/background/request_coordinator.cc#oldcode496 components/offline_pages/background/request_coordinator.cc:496: if (network_quality_estimator_) { Let's keep the ...
4 years, 1 month ago (2016-10-28 15:51:25 UTC) #11
Pete Williamson
https://codereview.chromium.org/2450293002/diff/20001/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (left): https://codereview.chromium.org/2450293002/diff/20001/components/offline_pages/background/request_coordinator.cc#oldcode496 components/offline_pages/background/request_coordinator.cc:496: if (network_quality_estimator_) { On 2016/10/28 15:51:25, dougarnett wrote: > ...
4 years, 1 month ago (2016-10-28 17:56:54 UTC) #12
Dmitry Titov
lgtm with a big caveat: How do we know this improves things? On slow networks, ...
4 years, 1 month ago (2016-10-28 18:21:12 UTC) #13
dougarnett
On 2016/10/28 18:21:12, Dmitry Titov wrote: > lgtm with a big caveat: > > How ...
4 years, 1 month ago (2016-10-28 18:34:38 UTC) #14
dougarnett
still lgtm
4 years, 1 month ago (2016-10-28 18:34:50 UTC) #15
Dmitry Titov
On 2016/10/28 18:34:38, dougarnett wrote: > On 2016/10/28 18:21:12, Dmitry Titov wrote: > > lgtm ...
4 years, 1 month ago (2016-10-28 18:37:12 UTC) #16
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/2450293002/40001
4 years, 1 month ago (2016-10-28 20:54:22 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-10-28 21:58:06 UTC) #19
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/11aeb394f106f8ee8dccd0b01d03d107ae535c44 Cr-Commit-Position: refs/heads/master@{#428506}
4 years, 1 month ago (2016-10-28 22:01:07 UTC) #21
dougarnett
4 years, 1 month ago (2016-11-02 16:59:53 UTC) #22
Message was sent while issue was closed.
On 2016/10/28 18:21:12, Dmitry Titov wrote:
> lgtm with a big caveat:
> 
> How do we know this improves things? On slow networks, assuming onLoad doesn't
> happen at all in reasonable timeout window, this has an effect of just
delaying
> snapshot for 18 seconds more than today. Do we know if background loading
> survives long enough for that to produce better snapshots? Is the perf impact
> (RAM/Battery etc) worth extended time?
> 
> While this can land as an initial approximation based on manual observations,
> I'd strongly suggest building specific metrics that can measure in the wild
the
> success rate as the immediate next step.

Fyi dimich@: It turns out this CL did not include putting back the call to
snapshot controller
for OnDomContentLoaded so the 25 second delay here means nothing. Instead this
effectively
adds 2 seconds to the OnLoad event before snapshotting (so potentially much
longer than
the 18 secs that you raised). This is subtle and was not clear to me when we
reviewed this. 
I created patch https://codereview.chromium.org/2473443004 to put back this call
because I 
thought is was an omission but Pete actually intends not to trigger on DCL+delay
at the
moment so we will discuss further.

Powered by Google App Engine
This is Rietveld 408576698