Skip to content

Commit 9e3eea4

Browse files
Add TZoneMallocInlines.h to precompiled headers
https://bugs.webkit.org/show_bug.cgi?id=289636 rdar://146884680 Reviewed by Mark Lam. TZoneMallocInlines.h is included 2597 times. This is what precompiled headers are for. Adding it to WebCorePrefix.h reduced WebCore's build time on my laptop from this: make d 18.32s user 2.96s system 5% cpu 6:13.57 total to this: make d 13.43s user 2.13s system 4% cpu 5:35.53 total A 40 second reduction in build times seems worth it to me. * Source/JavaScriptCore/JavaScriptCorePrefix.h: * Source/WebCore/WebCorePrefix.h: * Source/WebKit/WebKit2Prefix.h: Canonical link: https://commits.webkit.org/292047@main
1 parent 9a956ee commit 9e3eea4

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

Source/JavaScriptCore/JavaScriptCorePrefix.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
#include <string>
6868
#include <typeinfo>
6969
#include <wtf/TZoneMalloc.h>
70+
#include <wtf/TZoneMallocInlines.h>
7071
#endif
7172

7273
#ifdef __cplusplus

Source/WebCore/WebCorePrefix.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@
165165
#include <wtf/HashMap.h>
166166
#include <wtf/StdLibExtras.h>
167167
#include <wtf/TZoneMalloc.h>
168+
#include <wtf/TZoneMallocInlines.h>
168169
#include <wtf/text/AtomString.h>
169170
#include <wtf/text/WTFString.h>
170171
#endif
@@ -181,3 +182,4 @@
181182
#undef try
182183
#undef catch
183184
#endif
185+

Source/WebKit/WebKit2Prefix.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
#include <mutex>
6666
#include <string>
6767
#include <wtf/TZoneMalloc.h>
68+
#include <wtf/TZoneMallocInlines.h>
6869
#endif
6970

7071
#ifdef __OBJC__

0 commit comments

Comments
 (0)