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

Issue 2140093002: STH Set: Delay loading until after start-up. (Closed)

Created:
4 years, 5 months ago by Eran Messeri
Modified:
4 years, 5 months ago
CC:
chromium-reviews, darin-cc_chromium.org, RyanS, Ryan Sleevi
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

STH Set: Delay loading until after start-up. When loading the STHs, the STHSet Component will invoke the SafeJsonParser up to half a dozen times (one for each STH), which can have performance implications. Also update the PostAfterStartupTask documentation to indicate the task will be posted immediately if called after start-up. BUG=607946 Committed: https://crrev.com/af4e289461794790203de6d050198b7e8e7ad5d1 Cr-Commit-Position: refs/heads/master@{#406009}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Directly posting #

Patch Set 3 : Adding variation parameter #

Total comments: 14

Patch Set 4 : WeakPtrFactory, other comments #

Patch Set 5 : Switched back to GetVariationParamValueByFeature #

Total comments: 2

Patch Set 6 : Not using SafeJsonParser #

Total comments: 2

Patch Set 7 : Another variation parameter #

Patch Set 8 : Merging with master #

Patch Set 9 : Removed comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -13 lines) Patch
M chrome/browser/component_updater/sth_set_component_installer.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/sth_set_component_installer.cc View 1 2 3 4 5 6 7 8 4 chunks +39 lines, -13 lines 0 comments Download
M content/public/browser/browser_thread.h View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 66 (13 generated)
Eran Messeri
jam, kindly review the small documentation change to content/public/browser/browser_thread.h. waffles / asvitkine, the STHSet component ...
4 years, 5 months ago (2016-07-12 12:28:48 UTC) #3
Eran Messeri
jam, kindly review the small documentation change to content/public/browser/browser_thread.h. waffles / asvitkine, the STHSet component ...
4 years, 5 months ago (2016-07-12 12:28:49 UTC) #4
waffles
https://codereview.chromium.org/2140093002/diff/1/chrome/browser/component_updater/sth_set_component_installer.cc File chrome/browser/component_updater/sth_set_component_installer.cc (right): https://codereview.chromium.org/2140093002/diff/1/chrome/browser/component_updater/sth_set_component_installer.cc#newcode79 chrome/browser/component_updater/sth_set_component_installer.cc:79: base::Bind(&STHSetComponentInstallerTraits::PostStartupLoadSTHsFromDisk, Why not directly post LoadSTHsFromDisk? (I'm not sure ...
4 years, 5 months ago (2016-07-12 13:57:00 UTC) #5
Alexei Svitkine (slow)
https://codereview.chromium.org/2140093002/diff/1/chrome/browser/component_updater/sth_set_component_installer.cc File chrome/browser/component_updater/sth_set_component_installer.cc (right): https://codereview.chromium.org/2140093002/diff/1/chrome/browser/component_updater/sth_set_component_installer.cc#newcode77 chrome/browser/component_updater/sth_set_component_installer.cc:77: content::BrowserThread::PostAfterStartupTask( Per comment on the bug, please keep the ...
4 years, 5 months ago (2016-07-12 14:56:09 UTC) #6
Eran Messeri
Addressed both comments, PTAL. https://codereview.chromium.org/2140093002/diff/1/chrome/browser/component_updater/sth_set_component_installer.cc File chrome/browser/component_updater/sth_set_component_installer.cc (right): https://codereview.chromium.org/2140093002/diff/1/chrome/browser/component_updater/sth_set_component_installer.cc#newcode77 chrome/browser/component_updater/sth_set_component_installer.cc:77: content::BrowserThread::PostAfterStartupTask( On 2016/07/12 14:56:09, Alexei ...
4 years, 5 months ago (2016-07-12 16:14:42 UTC) #7
waffles
lgtm
4 years, 5 months ago (2016-07-12 16:21:57 UTC) #8
jam
I just read through a bunch of the notes on the bug. Why should we ...
4 years, 5 months ago (2016-07-12 16:27:00 UTC) #9
Eran Messeri
On 2016/07/12 16:27:00, jam wrote: > I just read through a bunch of the notes ...
4 years, 5 months ago (2016-07-12 19:56:34 UTC) #10
Alexei Svitkine (slow)
This change looks good % comment below. At the very least, I think it's a ...
4 years, 5 months ago (2016-07-12 19:59:28 UTC) #11
gab
https://codereview.chromium.org/2140093002/diff/40001/chrome/browser/component_updater/sth_set_component_installer.cc File chrome/browser/component_updater/sth_set_component_installer.cc (right): https://codereview.chromium.org/2140093002/diff/40001/chrome/browser/component_updater/sth_set_component_installer.cc#newcode80 chrome/browser/component_updater/sth_set_component_installer.cc:80: "delayed_load") == "yes") { Flip this condition around (i.e. ...
4 years, 5 months ago (2016-07-12 20:09:25 UTC) #13
jam
On 2016/07/12 19:56:34, Eran Messeri wrote: > On 2016/07/12 16:27:00, jam wrote: > > I ...
4 years, 5 months ago (2016-07-12 20:12:00 UTC) #14
waffles
I'm fine with the CL as-is, since it seems an improvement over the existing code. ...
4 years, 5 months ago (2016-07-12 20:46:07 UTC) #15
jam
On 2016/07/12 20:46:07, waffles wrote: > I'm fine with the CL as-is, since it seems ...
4 years, 5 months ago (2016-07-12 20:52:49 UTC) #16
Eran Messeri
[+rsleevi, as he originally pointed out JSON parsing should be done in a separate process]. ...
4 years, 5 months ago (2016-07-13 10:47:43 UTC) #17
Eran Messeri
PTAL - Is everyone, including jam, happy with the CL in its current state? Note ...
4 years, 5 months ago (2016-07-13 10:51:56 UTC) #18
Alexei Svitkine (slow)
On Jul 13, 2016 6:51 AM, <eranm@chromium.org> wrote: > > PTAL - Is everyone, including ...
4 years, 5 months ago (2016-07-13 12:35:50 UTC) #19
Eran Messeri
> > GetVariationParamsByFeature should be fine to use, please switch back to > using this. ...
4 years, 5 months ago (2016-07-13 16:03:56 UTC) #20
Alexei Svitkine (slow)
lgtm
4 years, 5 months ago (2016-07-13 16:06:11 UTC) #21
waffles
lgtm
4 years, 5 months ago (2016-07-13 16:12:55 UTC) #22
jam
On 2016/07/13 10:47:43, Eran Messeri wrote: > [+rsleevi, as he originally pointed out JSON parsing ...
4 years, 5 months ago (2016-07-13 17:22:01 UTC) #23
gab
https://codereview.chromium.org/2140093002/diff/40001/chrome/browser/component_updater/sth_set_component_installer.cc File chrome/browser/component_updater/sth_set_component_installer.cc (right): https://codereview.chromium.org/2140093002/diff/40001/chrome/browser/component_updater/sth_set_component_installer.cc#newcode81 chrome/browser/component_updater/sth_set_component_installer.cc:81: content::BrowserThread::PostAfterStartupTask( On 2016/07/13 10:51:55, Eran Messeri wrote: > On ...
4 years, 5 months ago (2016-07-13 17:29:08 UTC) #24
Ryan Sleevi
LGTM As for in-proc/out-of-proc, while jam@'s correct that if it's coming from Google it should ...
4 years, 5 months ago (2016-07-13 17:42:19 UTC) #26
jam
On 2016/07/13 17:22:01, jam wrote: > On 2016/07/13 10:47:43, Eran Messeri wrote: > > [+rsleevi, ...
4 years, 5 months ago (2016-07-13 17:59:12 UTC) #28
jam
On 2016/07/13 17:42:19, Ryan Sleevi (extremely slow) wrote: > LGTM > > As for in-proc/out-of-proc, ...
4 years, 5 months ago (2016-07-13 18:30:02 UTC) #29
Eran Messeri
On 2016/07/13 18:30:02, jam wrote: > On 2016/07/13 17:42:19, Ryan Sleevi (extremely slow) wrote: > ...
4 years, 5 months ago (2016-07-13 18:46:54 UTC) #30
jam
On 2016/07/13 18:46:54, Eran Messeri wrote: > On 2016/07/13 18:30:02, jam wrote: > > On ...
4 years, 5 months ago (2016-07-13 19:19:09 UTC) #31
Eran Messeri
> Thanks for the clarification. Given that information, agree it does sound like > we ...
4 years, 5 months ago (2016-07-13 19:22:11 UTC) #32
Alexei Svitkine (slow)
https://codereview.chromium.org/2140093002/diff/100001/chrome/browser/component_updater/sth_set_component_installer.cc File chrome/browser/component_updater/sth_set_component_installer.cc (right): https://codereview.chromium.org/2140093002/diff/100001/chrome/browser/component_updater/sth_set_component_installer.cc#newcode158 chrome/browser/component_updater/sth_set_component_installer.cc:158: int error_code = 0; Can you keep the old ...
4 years, 5 months ago (2016-07-13 19:25:01 UTC) #33
jam
lgtm, thanks for the simplification IMO using finch here to keep the old code path ...
4 years, 5 months ago (2016-07-13 19:31:25 UTC) #34
Alexei Svitkine (slow)
How do we know that the new codepath fully restores the regression rather than only ...
4 years, 5 months ago (2016-07-13 19:38:04 UTC) #35
waffles
lgtm (FWIW I agree with jam@ regarding keeping Finch here, unless we are worried about ...
4 years, 5 months ago (2016-07-13 19:41:54 UTC) #36
jam
On 2016/07/13 19:38:04, Alexei Svitkine (slow) wrote: > How do we know that the new ...
4 years, 5 months ago (2016-07-13 19:46:24 UTC) #37
brettw
I agree we do not need Finch in this case. We should run experiments when ...
4 years, 5 months ago (2016-07-13 19:51:16 UTC) #38
Alexei Svitkine (slow)
Actually, thinking about this more, I think you're right - we can omit the additional ...
4 years, 5 months ago (2016-07-13 20:07:02 UTC) #39
gab
On 2016/07/13 20:07:02, Alexei Svitkine (slow) wrote: > Actually, thinking about this more, I think ...
4 years, 5 months ago (2016-07-13 20:18:52 UTC) #40
Eran Messeri
I'm fine either way - asvitkine, please make a decision, I'll revise the code according ...
4 years, 5 months ago (2016-07-13 20:58:44 UTC) #41
jam
On 2016/07/13 20:58:44, Eran Messeri wrote: > I'm fine either way - asvitkine, please make ...
4 years, 5 months ago (2016-07-13 21:05:59 UTC) #42
Alexei Svitkine (slow)
Okay, I discussed this more with gab@ and rkaplow@ offline and here's some more thoughts ...
4 years, 5 months ago (2016-07-13 21:18:53 UTC) #43
jam
On 2016/07/13 21:18:53, Alexei Svitkine (slow) wrote: > Okay, I discussed this more with gab@ ...
4 years, 5 months ago (2016-07-13 23:09:28 UTC) #44
Eran Messeri
In the latest patchset there's another variation parameter for choosing whether to use the SafeJsonParser ...
4 years, 5 months ago (2016-07-14 10:00:47 UTC) #45
Eran Messeri
https://codereview.chromium.org/2140093002/diff/100001/chrome/browser/component_updater/sth_set_component_installer.cc File chrome/browser/component_updater/sth_set_component_installer.cc (right): https://codereview.chromium.org/2140093002/diff/100001/chrome/browser/component_updater/sth_set_component_installer.cc#newcode158 chrome/browser/component_updater/sth_set_component_installer.cc:158: int error_code = 0; On 2016/07/13 19:25:01, Alexei Svitkine ...
4 years, 5 months ago (2016-07-14 10:01:04 UTC) #46
Alexei Svitkine (slow)
patchset 7 LGTM jam: Just to be clear, I completely agree that in general, we ...
4 years, 5 months ago (2016-07-14 13:37:57 UTC) #47
gab
https://codereview.chromium.org/2140093002/diff/40001/chrome/browser/component_updater/sth_set_component_installer.cc File chrome/browser/component_updater/sth_set_component_installer.cc (right): https://codereview.chromium.org/2140093002/diff/40001/chrome/browser/component_updater/sth_set_component_installer.cc#newcode81 chrome/browser/component_updater/sth_set_component_installer.cc:81: content::BrowserThread::PostAfterStartupTask( On 2016/07/13 17:29:08, gab wrote: > On 2016/07/13 ...
4 years, 5 months ago (2016-07-14 14:46:03 UTC) #48
gab
On 2016/07/14 14:46:03, gab wrote: > https://codereview.chromium.org/2140093002/diff/40001/chrome/browser/component_updater/sth_set_component_installer.cc > File chrome/browser/component_updater/sth_set_component_installer.cc (right): > > https://codereview.chromium.org/2140093002/diff/40001/chrome/browser/component_updater/sth_set_component_installer.cc#newcode81 > ...
4 years, 5 months ago (2016-07-14 14:48:43 UTC) #49
jam
On 2016/07/14 10:00:47, Eran Messeri wrote: > In the latest patchset there's another variation parameter ...
4 years, 5 months ago (2016-07-14 16:08:15 UTC) #50
jam
btw we've sent an email to launch-review asking for feedback.
4 years, 5 months ago (2016-07-14 17:32:24 UTC) #51
Eran Messeri
Per out of band discussion with asvitkine, will submit this now with finch experiments code ...
4 years, 5 months ago (2016-07-18 09:36:06 UTC) #54
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/2140093002/160001
4 years, 5 months ago (2016-07-18 09:36:36 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/246381)
4 years, 5 months ago (2016-07-18 10:43:53 UTC) #59
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/2140093002/160001
4 years, 5 months ago (2016-07-18 14:42:07 UTC) #61
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 5 months ago (2016-07-18 16:13:02 UTC) #63
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-18 16:13:13 UTC) #64
commit-bot: I haz the power
4 years, 5 months ago (2016-07-18 16:15:17 UTC) #66
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/af4e289461794790203de6d050198b7e8e7ad5d1
Cr-Commit-Position: refs/heads/master@{#406009}

Powered by Google App Engine
This is Rietveld 408576698