Benchmarking indicates that WebPage.h and WebPageProxy.h are expensive: 976056 ms: /Users/bfulgham/Projects/WebKit/OpenSource/Source/WebKit/UIProcess/WebPageProxy.h (included 78 times, avg 12513 ms), included via: 726039 ms: /Users/bfulgham/Projects/WebKit/OpenSource/Source/WebKit/WebProcess/WebPage/WebPage.h (included 60 times, avg 12100 ms), included via: Code review shows that they are included in many places they are not needed, and that they include expensive headers that increase build time. This patch improves build times by resolving some of these cases.
WebPage.h drops from 12.1 seconds to about 7.4 seconds
<rdar://problem/106453112>
Pull request: https://github.com/WebKit/WebKit/pull/11258
Pull request: https://github.com/Webkit/WebKit/pull/11258
Current PR: Original Build (M1 Pro) **** Time summary: Compilation (10257 times): Parsing (frontend): 8924.2 s Codegen & opts (backend): 3158.1 s Revised Build (M1 Pro) **** Time summary: Compilation (10188 times): Parsing (frontend): 8529.2 s Codegen & opts (backend): 3150.0 s
I split this into a second patch: Bug 253837
Committed 261897@main (308d27ada88a): <https://commits.webkit.org/261897@main> Reviewed commits have been landed. Closing PR #11258 and removing active labels.