Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c69a763f29d880b6f6c9647cf3c44c15d514ed64
https://github.com/WebKit/WebKit/commit/c69a763f29d880b6f6c9647cf3c44c15d514ed64
Author: Brent Fulgham <[email protected]>
Date: 2026-04-17 (Fri, 17 Apr 2026)
Changed paths:
M Source/WebCore/dom/Element.cpp
M Source/WebCore/dom/Element.h
M Source/WebCore/dom/EventTarget.cpp
M Source/WebCore/dom/EventTarget.h
M Source/WebCore/dom/MessageEvent.cpp
M Source/WebCore/dom/MessageEvent.h
M Source/WebCore/dom/Node.cpp
M Source/WebCore/dom/Node.h
M Source/WebCore/html/DOMFormData.cpp
M Source/WebCore/html/DOMFormData.h
Log Message:
-----------
Build time improvement: Use extern template instantiation for high-traffic
mpark::variant instantiations
https://bugs.webkit.org/show_bug.cgi?id=311831
rdar://174419851
Reviewed by Geoffrey Garen.
Reduce redundant template instantiation across translation units by adding
explicit template
instantiation for commonly used mpark::variant types in widely-included WebCore
headers.
This reduces compile time by avoiding the repeated template expansions (which
have to be
culled at link time). Currently every translation unit does a template
expansion of the
variant machinery, which has to be removed at a later build step. Both
operations add time
to the build.
On my system, this current patch reduced build time by 0.8%.
* Source/WebCore/dom/Element.cpp:
* Source/WebCore/dom/Element.h:
* Source/WebCore/dom/EventTarget.cpp:
* Source/WebCore/dom/EventTarget.h:
* Source/WebCore/dom/MessageEvent.cpp:
* Source/WebCore/dom/MessageEvent.h:
* Source/WebCore/dom/Node.cpp:
* Source/WebCore/dom/Node.h:
* Source/WebCore/html/DOMFormData.cpp:
* Source/WebCore/html/DOMFormData.h:
Canonical link: https://commits.webkit.org/311479@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications