Bug 251750

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

Description Simon Fraser (smfr) 2023-02-04 21:06:20 PST
OpenSource % /usr/bin/python3 ./Tools/Scripts/dump-class-layout -c Release WebCore DocumentLoader   
  +0 <3824> WebCore::DocumentLoader
...
Total byte size: 3824
Total pad bytes: 378
Padding percentage: 9.89 %
Comment 1 Radar WebKit Bug Importer 2023-02-04 21:14:32 PST
<rdar://problem/105049498>
Comment 2 Simon Fraser (smfr) 2023-02-04 21:19:25 PST
Created attachment 464844 [details]
Patch
Comment 3 Simon Fraser (smfr) 2023-02-05 17:02:11 PST
Patch gets it down to:
Total byte size: 3712
Total pad bytes: 285
Comment 4 Simon Fraser (smfr) 2023-02-06 12:17:31 PST
Created attachment 464869 [details]
Patch
Comment 5 Simon Fraser (smfr) 2023-02-06 12:18:44 PST
Created attachment 464870 [details]
Patch
Comment 6 EWS 2023-02-06 13:56:57 PST
Committed 259913@main (7914f5368fed): <https://commits.webkit.org/259913@main>

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