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

Issue 1525213002: Shrink SVGTransform::valueAsString (Closed)

Created:
5 years ago by fs
Modified:
5 years ago
Reviewers:
pdr.
CC:
fs, blink-reviews, chromium-reviews, krit, f(malita), gyuyoung2, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Shrink SVGTransform::valueAsString Use a StringBuilder and convert transformTypePrefixForParsing to return const char*. Since this is a uniform arguments notation, put the arguments in an array and loop through them, appending them to the result. This reduces the size of this method from a bit of 6k to a bit over 950 bytes (x86-64). Committed: https://crrev.com/8b082d0c40be97848889cb3a0a42294042aee9dd Cr-Commit-Position: refs/heads/master@{#365354}

Patch Set 1 #

Patch Set 2 : Restore "" behavior for UNKNOWN. #

Patch Set 3 : Move builder init after switch. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -45 lines) Patch
M third_party/WebKit/Source/core/svg/SVGTransform.cpp View 1 2 1 chunk +57 lines, -45 lines 2 comments Download

Messages

Total messages: 12 (5 generated)
fs
More size-reducing whistle fodder
5 years ago (2015-12-15 19:18:28 UTC) #3
pdr.
https://codereview.chromium.org/1525213002/diff/40001/third_party/WebKit/Source/core/svg/SVGTransform.cpp File third_party/WebKit/Source/core/svg/SVGTransform.cpp (right): https://codereview.chromium.org/1525213002/diff/40001/third_party/WebKit/Source/core/svg/SVGTransform.cpp#newcode180 third_party/WebKit/Source/core/svg/SVGTransform.cpp:180: double arguments[6]; Why store these off in a separate ...
5 years ago (2015-12-15 19:26:25 UTC) #4
fs
https://codereview.chromium.org/1525213002/diff/40001/third_party/WebKit/Source/core/svg/SVGTransform.cpp File third_party/WebKit/Source/core/svg/SVGTransform.cpp (right): https://codereview.chromium.org/1525213002/diff/40001/third_party/WebKit/Source/core/svg/SVGTransform.cpp#newcode180 third_party/WebKit/Source/core/svg/SVGTransform.cpp:180: double arguments[6]; On 2015/12/15 at 19:26:25, pdr wrote: > ...
5 years ago (2015-12-15 19:42:58 UTC) #6
pdr.
On 2015/12/15 at 19:42:58, fs wrote: > https://codereview.chromium.org/1525213002/diff/40001/third_party/WebKit/Source/core/svg/SVGTransform.cpp > File third_party/WebKit/Source/core/svg/SVGTransform.cpp (right): > > https://codereview.chromium.org/1525213002/diff/40001/third_party/WebKit/Source/core/svg/SVGTransform.cpp#newcode180 ...
5 years ago (2015-12-15 21:38:03 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1525213002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1525213002/40001
5 years ago (2015-12-15 21:40:37 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years ago (2015-12-15 22:08:52 UTC) #10
commit-bot: I haz the power
5 years ago (2015-12-15 22:10:25 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8b082d0c40be97848889cb3a0a42294042aee9dd
Cr-Commit-Position: refs/heads/master@{#365354}

Powered by Google App Engine
This is Rietveld 408576698