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

Issue 18272014: Cache cssomWrappers for StylePropertySets directly on the MutableStylePropertySet. (Closed)

Created:
7 years, 5 months ago by Mads Ager (chromium)
Modified:
7 years, 5 months ago
Reviewers:
abarth-chromium
CC:
blink-reviews, apavlov+blink_chromium.org, dglazkov+blink, eae+blinkwatch, darktears
Visibility:
Public.

Description

Cache cssomWrappers for StylePropertySets directly on the MutableStylePropertySet. In my measurements the mapping is adding more overhead than just having a field in all MutableStylePropertySet objects. So this saves memory and makes access faster. Memory measurements: gmail: Wrappers: 276/297 (92%) Overhead: table > 16384 bytes, fields 2376 bytes facebook: Wrappers: 9/51 (17%) Overhead: table > 512 bytes, fields 408 bytes google plus: Wrappers: 208/229 (90%) Overhead: table > 16384 bytes, fields 1832 bytes cnn: Wrappers: 66/106 (62%) Overhead: table > 4096 bytes, fields 848 bytes youtube: Wrappers: 9/27 (33%) Overhead: table > 512 bytes, fields 216 bytes amazon: Wrappers: 48/90 (53%) Overhead: table > 4096 bytes, fields 720 bytes R=abarth@chromium.org BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=153700

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -46 lines) Patch
M Source/core/css/StylePropertySet.h View 1 6 chunks +8 lines, -14 lines 0 comments Download
M Source/core/css/StylePropertySet.cpp View 1 5 chunks +22 lines, -32 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Mads Ager (chromium)
7 years, 5 months ago (2013-07-03 13:58:23 UTC) #1
Mads Ager (chromium)
For the record, the measurements were performed with the attached patch. Cheers, -- Mads On ...
7 years, 5 months ago (2013-07-03 13:59:37 UTC) #2
abarth-chromium
LGTM with some minor comments below. https://codereview.chromium.org/18272014/diff/1/Source/core/css/StylePropertySet.cpp File Source/core/css/StylePropertySet.cpp (right): https://codereview.chromium.org/18272014/diff/1/Source/core/css/StylePropertySet.cpp#newcode66 Source/core/css/StylePropertySet.cpp:66: { } Please ...
7 years, 5 months ago (2013-07-03 18:25:42 UTC) #3
Mads Ager (chromium)
Thanks Adam. Could you have another quick look? https://codereview.chromium.org/18272014/diff/1/Source/core/css/StylePropertySet.cpp File Source/core/css/StylePropertySet.cpp (right): https://codereview.chromium.org/18272014/diff/1/Source/core/css/StylePropertySet.cpp#newcode66 Source/core/css/StylePropertySet.cpp:66: { ...
7 years, 5 months ago (2013-07-04 06:05:47 UTC) #4
abarth-chromium
lgtm Thanks!
7 years, 5 months ago (2013-07-08 18:16:00 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ager@chromium.org/18272014/7001
7 years, 5 months ago (2013-07-08 18:16:19 UTC) #6
commit-bot: I haz the power
7 years, 5 months ago (2013-07-08 20:23:42 UTC) #7
Message was sent while issue was closed.
Change committed as 153700

Powered by Google App Engine
This is Rietveld 408576698