Bug 251752

Summary: Optimize layout of Document to reduce padding
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: DOMAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, esprehn+autocc, ews-watchlist, heycam, kangil.han, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Simon Fraser (smfr) 2023-02-04 23:01:14 PST
SVGDocument (and thus XMLDocument and Document) are large with lots of padding:

Total byte size: 3088
Total pad bytes: 238

On a sample wikipedia page, there are 15 SVGDocuments for a total 46080 bytes (3072 allocated for each).
Comment 1 Radar WebKit Bug Importer 2023-02-04 23:01:34 PST
<rdar://problem/105050739>
Comment 2 Simon Fraser (smfr) 2023-02-04 23:04:05 PST
Created attachment 464846 [details]
Patch
Comment 3 EWS 2023-02-05 22:42:00 PST
Committed 259879@main (a6fc9735c4b6): <https://commits.webkit.org/259879@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 464846 [details].