Bug 251752 - Optimize layout of Document to reduce padding
Summary: Optimize layout of Document to reduce padding
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-02-04 23:01 PST by Simon Fraser (smfr)
Modified: 2023-02-05 22:42 PST (History)
7 users (show)

See Also:


Attachments
Patch (17.28 KB, patch)
2023-02-04 23:04 PST, Simon Fraser (smfr)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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].