DescriptionRemove the pointer from StringImpl
This CL removes the data pointer from StringImpl, reducing
sizeof(StringImpl) from 24 bytes to 12 bytes. We now always
store the character data after the StringImpl object itself,
which means we don't need a pointer to keep track of it.
This CL saves 120 kB of memory on typical web pages (which
have ~10k strings).
R=eseidel
BUG=262320
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155309
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155404
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155464
Patch Set 1 #Patch Set 2 : Mark constructor explicit #Patch Set 3 : Tweak slightly #Patch Set 4 : Now with placement new #
Messages
Total messages: 11 (0 generated)
|