Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 082af0d00c982ba01fcbc0e131973c07163ff1e8
https://github.com/WebKit/WebKit/commit/082af0d00c982ba01fcbc0e131973c07163ff1e8
Author: Elliott Williams <[email protected]>
Date: 2026-08-20 (Thu, 20 Aug 2026)
Changed paths:
M Source/WebKitLegacy/PlatformCocoa.cmake
M Source/cmake/WebKitMacros.cmake
M Source/cmake/WebKitSwiftPrewarm.cmake
Log Message:
-----------
[CMake] Build prewarm target early enough to benefit performance
https://bugs.webkit.org/show_bug.cgi?id=322075
Reviewed by Geoffrey Garen.
Right now, the SwiftPrewarmMac target is part of the build's critical path,
which also includes WebKit's swift target. So moving work from
WebKit.swiftmodule's build to prewarming does not actually improve
performance.
Fix by removing some overspecified dependencies that blocked the
prewarming target on waiting for WebCore to finish linking, and by
artifically adding a chain of dependents to prewarm, to trick Ninja into
scheduling it earlier (exploiting its critical-path scheduling algorithm
added in ninja-build/ninja#232).
On an M5 Max, this is worth about 6 sec (2%). Combined with #71911 it's
about 13 sec (4%).
* Source/WebKitLegacy/PlatformCocoa.cmake:
* Source/cmake/WebKitMacros.cmake:
* Source/cmake/WebKitSwiftPrewarm.cmake:
Canonical link: https://commits.webkit.org/319543@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications