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

Issue 2683203004: Move Storage for ListValue and DictValue in Union (Closed)

Created:
3 years, 10 months ago by jdoerrie
Modified:
3 years, 10 months ago
Reviewers:
brettw
CC:
chromium-reviews, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move Storage for ListValue and DictValue in Union This change moves the storage needed for ListValue and DictionaryValue into the union of base::Value. In addition, all virtual keywords from Value are dropped. The purpose of this change is to quickly reduce the memory footprint of base::Value, which increased after FundamentalValue was inlined. BUG=646113, 688526 R=brettw@chromium.org Review-Url: https://codereview.chromium.org/2683203004 Cr-Commit-Position: refs/heads/master@{#451296} Committed: https://chromium.googlesource.com/chromium/src/+/8e945543e2a82d11b0a2934919ad0ac7ad4e7633

Patch Set 1 #

Total comments: 8

Patch Set 2 : Wrap Dict in Ptr, Move Operators, Remove MockStringValue #

Patch Set 3 : Rebase #

Total comments: 6

Patch Set 4 : Implement copy operations, added comments and tests #

Patch Set 5 : Add missing return statements. #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+306 lines, -355 lines) Patch
M base/values.h View 1 2 3 11 chunks +53 lines, -67 lines 3 comments Download
M base/values.cc View 1 2 3 4 22 chunks +140 lines, -169 lines 4 comments Download
M base/values_unittest.cc View 1 2 3 5 chunks +108 lines, -90 lines 0 comments Download
M chrome/browser/extensions/api/preference/preference_api_prefs_unittest.cc View 1 2 chunks +5 lines, -29 lines 0 comments Download

Messages

Total messages: 31 (19 generated)
jdoerrie
Hi brettw@, please have a look. https://codereview.chromium.org/2683203004/diff/1/base/values_unittest.cc File base/values_unittest.cc (left): https://codereview.chromium.org/2683203004/diff/1/base/values_unittest.cc#oldcode420 base/values_unittest.cc:420: }; I had ...
3 years, 10 months ago (2017-02-10 15:17:38 UTC) #3
jdoerrie
https://codereview.chromium.org/2683203004/diff/1/base/values.h File base/values.h (left): https://codereview.chromium.org/2683203004/diff/1/base/values.h#oldcode361 base/values.h:361: DISALLOW_COPY_AND_ASSIGN(DictionaryValue); Given that it is currently impossible to copy ...
3 years, 10 months ago (2017-02-10 18:45:44 UTC) #6
brettw
https://codereview.chromium.org/2683203004/diff/1/base/values.h File base/values.h (right): https://codereview.chromium.org/2683203004/diff/1/base/values.h#newcode53 base/values.h:53: using DictStorage = std::map<std::string, std::unique_ptr<Value>>; As I commented in ...
3 years, 10 months ago (2017-02-11 00:24:04 UTC) #7
jdoerrie
https://codereview.chromium.org/2683203004/diff/1/base/values.h File base/values.h (right): https://codereview.chromium.org/2683203004/diff/1/base/values.h#newcode53 base/values.h:53: using DictStorage = std::map<std::string, std::unique_ptr<Value>>; On 2017/02/11 00:24:04, brettw ...
3 years, 10 months ago (2017-02-14 17:06:56 UTC) #16
brettw
https://codereview.chromium.org/2683203004/diff/40001/base/values.cc File base/values.cc (right): https://codereview.chromium.org/2683203004/diff/40001/base/values.cc#newcode502 base/values.cc:502: // Currently not implementable due to the presence of ...
3 years, 10 months ago (2017-02-14 23:15:05 UTC) #17
jdoerrie
https://codereview.chromium.org/2683203004/diff/40001/base/values.cc File base/values.cc (right): https://codereview.chromium.org/2683203004/diff/40001/base/values.cc#newcode502 base/values.cc:502: // Currently not implementable due to the presence of ...
3 years, 10 months ago (2017-02-15 15:29:09 UTC) #20
brettw
lgtm https://codereview.chromium.org/2683203004/diff/80001/base/values.cc File base/values.cc (right): https://codereview.chromium.org/2683203004/diff/80001/base/values.cc#newcode500 base/values.cc:500: // DictStorage and ListStorage are move-only types due ...
3 years, 10 months ago (2017-02-15 21:28:29 UTC) #21
jdoerrie
https://codereview.chromium.org/2683203004/diff/80001/base/values.cc File base/values.cc (right): https://codereview.chromium.org/2683203004/diff/80001/base/values.cc#newcode500 base/values.cc:500: // DictStorage and ListStorage are move-only types due to ...
3 years, 10 months ago (2017-02-16 09:19:35 UTC) #22
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/2683203004/80001
3 years, 10 months ago (2017-02-16 09:20:33 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/120428)
3 years, 10 months ago (2017-02-16 11:30:41 UTC) #26
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/2683203004/80001
3 years, 10 months ago (2017-02-17 11:44:16 UTC) #28
commit-bot: I haz the power
3 years, 10 months ago (2017-02-17 13:55:29 UTC) #31
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/8e945543e2a82d11b0a2934919ad...

Powered by Google App Engine
This is Rietveld 408576698