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

Issue 2692093006: predictors: Downgrade net priority of prefetch requests. (Closed)

Created:
3 years, 10 months ago by alexilin
Modified:
3 years, 10 months ago
Reviewers:
pasko, Benoit L
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

predictors: Downgrade net priority of prefetch requests. Prefetch predictor currently uses net::LOW priority to fetch resources that is higher than default priority for images, for example. This CL sets net::IDLE level for such requests. It allows to prioritize renderer requests above speculative ones. BUG=631966 Review-Url: https://codereview.chromium.org/2692093006 Cr-Commit-Position: refs/heads/master@{#452847} Committed: https://chromium.googlesource.com/chromium/src/+/d8c3159729df90d3b12c71c9ab6e5accd7bdf4aa

Patch Set 1 #

Total comments: 1

Patch Set 2 : Change priority to IDLE. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M chrome/browser/predictors/resource_prefetcher.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (6 generated)
alexilin
While we don't come up to more complex solution, I propose to downgrade prefetcher priority ...
3 years, 10 months ago (2017-02-15 16:07:09 UTC) #2
pasko
Following your logic we should make it net::IDLE. Default priority for images is quite low ...
3 years, 10 months ago (2017-02-16 18:14:23 UTC) #3
pasko
https://codereview.chromium.org/2692093006/diff/1/chrome/browser/predictors/resource_prefetcher.cc File chrome/browser/predictors/resource_prefetcher.cc (right): https://codereview.chromium.org/2692093006/diff/1/chrome/browser/predictors/resource_prefetcher.cc#newcode120 chrome/browser/predictors/resource_prefetcher.cc:120: url, net::DEFAULT_PRIORITY, this); nit: net::LOWEST is slightly more readable
3 years, 10 months ago (2017-02-16 18:14:40 UTC) #4
pasko
Pat suggested to use net::IDLE. If it does not regress our local test (afair it ...
3 years, 10 months ago (2017-02-22 14:17:21 UTC) #5
alexilin
I agree. Prefetcher prioritizes prefetch requests by its own so a RequestPriority value is only ...
3 years, 10 months ago (2017-02-23 10:25:38 UTC) #8
pasko
lgtm in cases when you want reviewers to take another look, please ask for it ...
3 years, 10 months ago (2017-02-24 15:05:04 UTC) #9
alexilin
Thanks! I think this and that, and by the way I updated the code! PTAL!
3 years, 10 months ago (2017-02-24 15:25:57 UTC) #10
Benoit L
On 2017/02/24 15:25:57, alexilin wrote: > Thanks! > I think this and that, and by ...
3 years, 10 months ago (2017-02-24 15:27:06 UTC) #11
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/2692093006/20001
3 years, 10 months ago (2017-02-24 15:35:15 UTC) #13
commit-bot: I haz the power
3 years, 10 months ago (2017-02-24 16:35:49 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/d8c3159729df90d3b12c71c9ab6e...

Powered by Google App Engine
This is Rietveld 408576698