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

Issue 2385173002: predictors: Take the priority into account for scoring resources. (Closed)

Created:
4 years, 2 months ago by Benoit L
Modified:
4 years, 2 months ago
Reviewers:
pasko
CC:
chromium-reviews, shishir+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

predictors: Take the priority into account for scoring resources. This changes the way the resource score is computed in the resource_prefetch_predictor. It takes into account the request priority as the most important feature, then resource type, then average position. The rationale is that resource priority surfaces the render-blocking resources, that are the most critical to prefetch. BUG=631966 Committed: https://crrev.com/3eb631ab216ff9ea0302a9e89efe33003b11d935 Cr-Commit-Position: refs/heads/master@{#422753}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -41 lines) Patch
M chrome/browser/predictors/resource_prefetch_predictor_tables.cc View 1 3 chunks +35 lines, -8 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_tables_unittest.cc View 1 chunk +41 lines, -27 lines 0 comments Download
M tools/resource_prefetch_predictor/prefetch_predictor_tool.py View 1 chunk +16 lines, -6 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
Benoit L
4 years, 2 months ago (2016-10-03 14:00:45 UTC) #2
pasko
lovely, just a few small suggestions and nits https://codereview.chromium.org/2385173002/diff/1/chrome/browser/predictors/resource_prefetch_predictor_tables.cc File chrome/browser/predictors/resource_prefetch_predictor_tables.cc (right): https://codereview.chromium.org/2385173002/diff/1/chrome/browser/predictors/resource_prefetch_predictor_tables.cc#newcode483 chrome/browser/predictors/resource_prefetch_predictor_tables.cc:483: static ...
4 years, 2 months ago (2016-10-03 16:48:20 UTC) #3
Benoit L
https://codereview.chromium.org/2385173002/diff/1/chrome/browser/predictors/resource_prefetch_predictor_tables.cc File chrome/browser/predictors/resource_prefetch_predictor_tables.cc (right): https://codereview.chromium.org/2385173002/diff/1/chrome/browser/predictors/resource_prefetch_predictor_tables.cc#newcode483 chrome/browser/predictors/resource_prefetch_predictor_tables.cc:483: static constexpr int kMaxResourcesPerType = 100; On 2016/10/03 16:48:20, ...
4 years, 2 months ago (2016-10-04 09:49:54 UTC) #4
pasko
lgtm https://codereview.chromium.org/2385173002/diff/1/chrome/browser/predictors/resource_prefetch_predictor_tables_unittest.cc File chrome/browser/predictors/resource_prefetch_predictor_tables_unittest.cc (right): https://codereview.chromium.org/2385173002/diff/1/chrome/browser/predictors/resource_prefetch_predictor_tables_unittest.cc#newcode578 chrome/browser/predictors/resource_prefetch_predictor_tables_unittest.cc:578: auto compute_score = [](net::RequestPriority priority, On 2016/10/04 09:49:54, ...
4 years, 2 months ago (2016-10-04 11:10:36 UTC) #9
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/2385173002/20001
4 years, 2 months ago (2016-10-04 11:16:36 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-04 11:21:42 UTC) #12
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 11:25:16 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/3eb631ab216ff9ea0302a9e89efe33003b11d935
Cr-Commit-Position: refs/heads/master@{#422753}

Powered by Google App Engine
This is Rietveld 408576698