Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c51bf2cafbe0d2d8827d5874bb650b3032ee80f9
https://github.com/WebKit/WebKit/commit/c51bf2cafbe0d2d8827d5874bb650b3032ee80f9
Author: Geoffrey Garen <[email protected]>
Date: 2026-04-14 (Tue, 14 Apr 2026)
Changed paths:
M Source/WTF/Configurations/WTF.xcconfig
A Source/WTF/WTFPrefix.h
M Source/WTF/wtf/OSObjectPtr.h
M Source/WTF/wtf/text/CString.cpp
Log Message:
-----------
[Build Speed] Add a prefix header for WTF
https://bugs.webkit.org/show_bug.cgi?id=312182
rdar://174680606
Reviewed by Jer Noble.
Based on profiling most common / expensive includes.
This is a ~1.5X / 10s speedup in WTF compilation.
* Source/WTF/Configurations/WTF.xcconfig:
* Source/WTF/WTFPrefix.h: Added.
* Source/WTF/wtf/OSObjectPtr.h:
(WTF::OSObjectPtr::~OSObjectPtr): Suppress a SaferCPP argument
warning. OSObjectPtr is the unsafe primitive we build safety
on top of. (I'm not sure why this specific change caused SaferCPP
to start reporting this line.)
* Source/WTF/wtf/text/CString.cpp:
(WTF::CString::CString): Do an explicit isNull() check to avoid
ambiguity with operator char*, now that it's visible via the
prefix header.
Canonical link: https://commits.webkit.org/311193@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications