Bug 251413

Summary: move SVG conditional processing attributes to SVGElementRareData
Product: WebKit Reporter: Cameron McCormack (:heycam) <heycam>
Component: SVGAssignee: Cameron McCormack (:heycam) <heycam>
Status: RESOLVED FIXED    
Severity: Normal CC: sabouhallawa, webkit-bug-importer, zimmermann
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Cameron McCormack (:heycam)
Reported 2023-01-30 19:51:40 PST
The SVG conditional processing attributes (requiredFeatures, requiredExtensions, and systemLanguage) are rarely used. Currently nearly every SVG element creates SVGStringList objects for these three attributes in WebCore::SVGTests, at a cost of 48 bytes each SVGStringList plus the three pointers. We can move these to SVGElementRareData to save 72 bytes per SVG element in this common case, which for SVG documents with a large number of graphical elements can add up.
Attachments
Radar WebKit Bug Importer
Comment 1 2023-01-30 19:52:05 PST
Cameron McCormack (:heycam)
Comment 2 2023-01-30 20:48:27 PST
EWS
Comment 3 2023-02-02 12:04:48 PST
Committed 259772@main (a0e6d8e81896): <https://commits.webkit.org/259772@main> Reviewed commits have been landed. Closing PR #9366 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.