DescriptionDe-bloat SVGPathStringBuilder
For a class this meager, it was a bit of a heavy-weight:
SVGPathStringBuilder::arcTo() clocked in at a whopping 7891 bytes
(Linux, x86-64, gcc-4.8.2), but even the much simpler lineToVertical()
used > .5k of text-space.
Sacrifice the StringOperators-based pattern and use a cascade of functions
instead.
Besides reducing footprint, this also eliminates some of the copying that
would occur between various temporary String objects.
With the change in place, arcTo() dropped to 640 bytes (and lineToVertical
got cut in half.)
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170523
Patch Set 1 #
Total comments: 1
Patch Set 2 : Generate directly in StringBuilder storage. #
Total comments: 4
Patch Set 3 : Drop ASSERT. #
Messages
Total messages: 12 (0 generated)
|