Bug 254341 - Improve build speed by limiting WTFString includes
Summary: Improve build speed by limiting WTFString includes
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-03-23 09:57 PDT by Brent Fulgham
Modified: 2023-03-23 09:58 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brent Fulgham 2023-03-23 09:57:31 PDT
WTFString is one of the more costly headers to parse, and is included hundreds of times across the build. In most cases, we can simply use the Forward.h header, and only include the actual class definition in files that need to know the details of the class.

This patch switches to Forward.h in header files that are currently including WTFString.h. While I removed other includes in files that I was changing WTFString.h -> Forward.h, I did not attempt to reduce includes of other items outside of those files.
Comment 1 Radar WebKit Bug Importer 2023-03-23 09:58:12 PDT
<rdar://problem/107140117>