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=
Review URL: https://chromiumcodereview.appspot.com/18272014
git-svn-id: svn://svn.chromium.org/blink/trunk@153700 bbb929c8-8fbe-4397-9dbb-9b2b20218538
2 files changed