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

Issue 974753002: Stop pretty-printing pref JSON (Closed)

Created:
5 years, 9 months ago by hashimoto
Modified:
5 years, 9 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Stop pretty-printing pref JSON To reduce the amount of data written out to the disk during shutdown to avoid slowing it down. In practice, this results in about 30% size reduction of Preferences file. BUG=463366 Committed: https://crrev.com/6fe43614243c9e8935a01be3fb149ccc2d8d4c4e Cr-Commit-Position: refs/heads/master@{#319211}

Patch Set 1 #

Patch Set 2 : Fix test #

Patch Set 3 : Add --pretty-print-prefs switch #

Total comments: 2

Patch Set 4 : Add braces #

Total comments: 2

Patch Set 5 : No export #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -12 lines) Patch
M base/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M base/base.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A base/prefs/base_prefs_switches.h View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
A base/prefs/base_prefs_switches.cc View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M base/prefs/json_pref_store.cc View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M base/test/data/prefs/write.golden.json View 1 1 chunk +1 line, -11 lines 0 comments Download

Messages

Total messages: 27 (6 generated)
hashimoto
Hi Bernhard, I'd like to remove this line to make the serialized preference data 30% ...
5 years, 9 months ago (2015-03-03 05:08:42 UTC) #2
Bernhard Bauer
On 2015/03/03 05:08:42, hashimoto wrote: > Hi Bernhard, > > I'd like to remove this ...
5 years, 9 months ago (2015-03-03 09:17:00 UTC) #3
hashimoto
On 2015/03/03 09:17:00, Bernhard Bauer wrote: > On 2015/03/03 05:08:42, hashimoto wrote: > > Hi ...
5 years, 9 months ago (2015-03-03 09:47:48 UTC) #4
hashimoto
TBRing phajdan.jr@chromium.org for base/test/data/prefs/write.golden.json
5 years, 9 months ago (2015-03-03 09:59:05 UTC) #6
Bernhard Bauer
On 2015/03/03 09:47:48, hashimoto wrote: > On 2015/03/03 09:17:00, Bernhard Bauer wrote: > > On ...
5 years, 9 months ago (2015-03-03 10:53:02 UTC) #7
Paweł Hajdan Jr.
base/test/data LGTM
5 years, 9 months ago (2015-03-03 11:30:23 UTC) #8
Bernhard Bauer
+gab
5 years, 9 months ago (2015-03-03 12:38:03 UTC) #10
gab
Just saw this, not lgtm just yet, as I stressed on the bug a few ...
5 years, 9 months ago (2015-03-03 13:15:43 UTC) #11
gab
On 2015/03/03 13:15:43, gab wrote: > Just saw this, not lgtm just yet, as I ...
5 years, 9 months ago (2015-03-03 13:16:50 UTC) #12
hashimoto
On 2015/03/03 13:16:50, gab wrote: > On 2015/03/03 13:15:43, gab wrote: > > Just saw ...
5 years, 9 months ago (2015-03-03 13:44:51 UTC) #13
gab
On 2015/03/03 13:44:51, hashimoto wrote: > On 2015/03/03 13:16:50, gab wrote: > > On 2015/03/03 ...
5 years, 9 months ago (2015-03-03 13:53:50 UTC) #14
hashimoto
Uploaded a new patch set with "--pretty-print-prefs" switch. PTAL
5 years, 9 months ago (2015-03-04 05:37:30 UTC) #15
Bernhard Bauer
LGTM if Gab is happy. https://codereview.chromium.org/974753002/diff/40001/base/prefs/json_pref_store.cc File base/prefs/json_pref_store.cc (right): https://codereview.chromium.org/974753002/diff/40001/base/prefs/json_pref_store.cc#newcode404 base/prefs/json_pref_store.cc:404: switches::kPrettyPrintPrefs)) Add braces around ...
5 years, 9 months ago (2015-03-04 10:07:58 UTC) #16
hashimoto
https://codereview.chromium.org/974753002/diff/40001/base/prefs/json_pref_store.cc File base/prefs/json_pref_store.cc (right): https://codereview.chromium.org/974753002/diff/40001/base/prefs/json_pref_store.cc#newcode404 base/prefs/json_pref_store.cc:404: switches::kPrettyPrintPrefs)) On 2015/03/04 10:07:58, Bernhard Bauer wrote: > Add ...
5 years, 9 months ago (2015-03-04 14:18:40 UTC) #17
gab
lgtm w/ comment about export Thanks, Gab https://codereview.chromium.org/974753002/diff/60001/base/prefs/base_prefs_switches.h File base/prefs/base_prefs_switches.h (right): https://codereview.chromium.org/974753002/diff/60001/base/prefs/base_prefs_switches.h#newcode12 base/prefs/base_prefs_switches.h:12: BASE_PREFS_EXPORT extern ...
5 years, 9 months ago (2015-03-04 16:33:58 UTC) #18
hashimoto
https://codereview.chromium.org/974753002/diff/60001/base/prefs/base_prefs_switches.h File base/prefs/base_prefs_switches.h (right): https://codereview.chromium.org/974753002/diff/60001/base/prefs/base_prefs_switches.h#newcode12 base/prefs/base_prefs_switches.h:12: BASE_PREFS_EXPORT extern const char kPrettyPrintPrefs[]; On 2015/03/04 16:33:57, gab ...
5 years, 9 months ago (2015-03-04 17:05:49 UTC) #19
hashimoto
thakis@, could you review this change as an owner of base/base.gyp and base/BUILD.gn?
5 years, 9 months ago (2015-03-04 17:06:43 UTC) #21
Nico
lgtm, cool!
5 years, 9 months ago (2015-03-04 17:43:21 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/974753002/80001
5 years, 9 months ago (2015-03-05 03:26:22 UTC) #25
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 9 months ago (2015-03-05 03:57:32 UTC) #26
commit-bot: I haz the power
5 years, 9 months ago (2015-03-05 03:58:10 UTC) #27
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/6fe43614243c9e8935a01be3fb149ccc2d8d4c4e
Cr-Commit-Position: refs/heads/master@{#319211}

Powered by Google App Engine
This is Rietveld 408576698