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

Issue 2800783002: predictors: Several improvements for redirects database. (Closed)

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

Description

predictors: Several improvements for redirects database. This CL aims to improve redirects handling in the ResourcePrefetchPredictor by considering the URL/host itself along with redirect endpoints (1) and handling special case when there is no permanent redirect for a host (2). (1) helps to avoid incorrect predictions in scenario when the URL/host doesn't have a permanent redirect and the predictor mistakenly uses the fallback to fetching based on the first main frame url in the redirect chain. (2) allows to ignore "megamorphic" URLs/hosts. For example, url shorteners. BUG=631966 Review-Url: https://codereview.chromium.org/2800783002 Cr-Commit-Position: refs/heads/master@{#464103} Committed: https://chromium.googlesource.com/chromium/src/+/93cb7df1f935461d1b3c5544f0c7efe38097d8d7

Patch Set 1 #

Total comments: 7

Patch Set 2 : Don't keep a lot of redirect endpoints. #

Total comments: 1

Patch Set 3 : Fix unittests. #

Total comments: 4

Patch Set 4 : Comments. #

Patch Set 5 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -95 lines) Patch
M chrome/browser/predictors/resource_prefetch_common.h View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/predictors/resource_prefetch_common.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor.h View 1 2 3 4 2 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor.cc View 1 2 3 4 4 chunks +43 lines, -51 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_unittest.cc View 1 2 3 4 11 chunks +95 lines, -37 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 21 (10 generated)
alexilin
Hi lizeb, please review my change! Tests are broken, I want to get your approval ...
3 years, 8 months ago (2017-04-05 16:23:12 UTC) #2
Benoit L
Looks good, an alternative as discussed offline is to track consecutive hits/misses at the top ...
3 years, 8 months ago (2017-04-06 12:10:55 UTC) #3
alexilin
I propose the solution similar to min number of consecutive hits. I could add a ...
3 years, 8 months ago (2017-04-06 13:05:21 UTC) #4
alexilin
Benoit, are you OK with this implementation?
3 years, 8 months ago (2017-04-06 17:52:11 UTC) #5
Benoit L
On 2017/04/06 17:52:11, alexilin wrote: > Benoit, are you OK with this implementation? Yes, looks ...
3 years, 8 months ago (2017-04-07 09:04:36 UTC) #6
alexilin
Tests are fixed now, your review is welcome.
3 years, 8 months ago (2017-04-07 13:01:19 UTC) #9
Benoit L
https://codereview.chromium.org/2800783002/diff/40001/chrome/browser/predictors/resource_prefetch_common.h File chrome/browser/predictors/resource_prefetch_common.h (right): https://codereview.chromium.org/2800783002/diff/40001/chrome/browser/predictors/resource_prefetch_common.h#newcode115 chrome/browser/predictors/resource_prefetch_common.h:115: // The number of consecutive misses after we stop ...
3 years, 8 months ago (2017-04-10 09:50:35 UTC) #12
alexilin
https://codereview.chromium.org/2800783002/diff/40001/chrome/browser/predictors/resource_prefetch_common.h File chrome/browser/predictors/resource_prefetch_common.h (right): https://codereview.chromium.org/2800783002/diff/40001/chrome/browser/predictors/resource_prefetch_common.h#newcode115 chrome/browser/predictors/resource_prefetch_common.h:115: // The number of consecutive misses after we stop ...
3 years, 8 months ago (2017-04-10 17:43:25 UTC) #13
Benoit L
lgtm, thanks.
3 years, 8 months ago (2017-04-11 09:14:15 UTC) #14
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/2800783002/80001
3 years, 8 months ago (2017-04-12 16:58:19 UTC) #17
commit-bot: I haz the power
3 years, 8 months ago (2017-04-12 19:21:46 UTC) #21
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/93cb7df1f935461d1b3c5544f0c7...

Powered by Google App Engine
This is Rietveld 408576698