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

Issue 2388783002: predictors: Refactor resource_prefetch_predictor_tables. (Closed)

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

Description

predictors: Refactor resource_prefetch_predictor_tables. Replace PrefetchData struct by proto message. It changes sqlite tables structure from 'single resource - single row' to 'single url/host - single row'. Also get rid of {Host,Url}MetadataTable because we don't need it anymore. It allows to get more uniform database structure and reuse the same functions for manipulating data. + 2 little bug fixes: - Sort redirect data while reading from the database. - Check the length of the key in redirect table before adding an entry. BUG=631966 Committed: https://crrev.com/e3854397b42e53cdc26e9b5237f4f061522a1c45 Cr-Commit-Position: refs/heads/master@{#423168}

Patch Set 1 #

Total comments: 13

Patch Set 2 : Remove duplication. #

Total comments: 34

Patch Set 3 : Fix nits. #

Total comments: 2

Patch Set 4 : Rebase. #

Messages

Total messages: 35 (19 generated)
alexilin
Hi Benoit, I've made the refactoring of resource tables as we discussed. I also want ...
4 years, 2 months ago (2016-10-03 14:07:12 UTC) #2
Benoit L
Thanks! Code looks fine, a few high-level comments. I feel there are still too much ...
4 years, 2 months ago (2016-10-04 08:22:43 UTC) #3
alexilin
Hey Benoit, I didn't forgot about duplication in code. I was planning to remove it ...
4 years, 2 months ago (2016-10-04 09:43:49 UTC) #4
Benoit L
+pasko
4 years, 2 months ago (2016-10-04 11:22:36 UTC) #7
Benoit L
A few more comments. Looking at the tests now. https://codereview.chromium.org/2388783002/diff/20001/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (right): https://codereview.chromium.org/2388783002/diff/20001/chrome/browser/predictors/resource_prefetch_predictor.cc#newcode817 chrome/browser/predictors/resource_prefetch_predictor.cc:817: ...
4 years, 2 months ago (2016-10-04 15:43:57 UTC) #8
Benoit L
Tests look good :-)
4 years, 2 months ago (2016-10-04 15:59:07 UTC) #9
pasko
I like the simplification this change introduces! I have not carefully reviewed details, relying on ...
4 years, 2 months ago (2016-10-04 16:12:16 UTC) #10
alexilin
Hi everyone, Answer your comments, fix nits... Also I updated issue description (added information about ...
4 years, 2 months ago (2016-10-04 17:25:47 UTC) #13
Benoit L
LGTM, thanks. https://codereview.chromium.org/2388783002/diff/40001/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (right): https://codereview.chromium.org/2388783002/diff/40001/chrome/browser/predictors/resource_prefetch_predictor.cc#newcode966 chrome/browser/predictors/resource_prefetch_predictor.cc:966: // If the primary key is too ...
4 years, 2 months ago (2016-10-05 08:43:20 UTC) #14
alexilin
bauerb: please review chrome/browser/ui/webui/predictors/predictors_handler.cc. Thanks! asvitkine: please review tools/metrics/histograms/histograms.xml. I marked one histogram as deprecated. ...
4 years, 2 months ago (2016-10-05 11:22:04 UTC) #22
pasko
..forgot to publish one draft https://codereview.chromium.org/2388783002/diff/20001/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (right): https://codereview.chromium.org/2388783002/diff/20001/chrome/browser/predictors/resource_prefetch_predictor.cc#newcode718 chrome/browser/predictors/resource_prefetch_predictor.cc:718: uint64_t oldest_time = UINT64_MAX; ...
4 years, 2 months ago (2016-10-05 11:49:32 UTC) #25
Bernhard Bauer
WebUI LGTM
4 years, 2 months ago (2016-10-05 14:26:44 UTC) #26
Alexei Svitkine (slow)
lgtm
4 years, 2 months ago (2016-10-05 15:33:12 UTC) #27
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/2388783002/60001
4 years, 2 months ago (2016-10-05 15:45:11 UTC) #31
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-05 15:50:41 UTC) #33
commit-bot: I haz the power
4 years, 2 months ago (2016-10-05 15:52:54 UTC) #35
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e3854397b42e53cdc26e9b5237f4f061522a1c45
Cr-Commit-Position: refs/heads/master@{#423168}

Powered by Google App Engine
This is Rietveld 408576698