|
Enable precompiled headers for Blink on Windows
One reason Blink is slow to compile is that there is a lot of code
included in every compilation unit. This is partly because everything
depends on either LayoutObject.h or Document.h and those in turn
include huge portions of the rest of Blink.
By precompiling LayoutObject.h and Document.h the compilation of core and
modules in Blink can be 4 times faster (5 minutes instead of
20 minutes on my computer).
The downside is that it will introduce Document.h and LayoutObject.h
also in compilation units that didn't expect it, for instance
XPathGrammer.y that suddenly will have both blink::Path and
blink::XPath::Path in scope (and blink::Filter / blink::XPath::Filter)
Note that distributed compilation system disables precompiled headers
globally so this will *not* make trybots faster.
This already landed[1] in the gyp/VS2013 world a year ago but some random
bot failures made us decide to revert it. Now with gn and VS2015 the world
should be a better place.
[1] https://codereview.chromium.org/1167523007/
BUG= 495697
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+203 lines, -39 lines) |
Patch |
|
M |
build/config/BUILD.gn
|
View
|
1
|
8 chunks |
+7 lines, -11 lines |
0 comments
|
Download
|
|
A |
build/config/pch.gni
|
View
|
1
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/BUILD.gn
|
View
|
1
|
1 chunk |
+38 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/BUILD.gn
|
View
|
1
|
11 chunks |
+45 lines, -9 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/DEPS
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/core.gyp
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/frame/Frame.h
|
View
|
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
|
A |
third_party/WebKit/Source/core/win/Precompile-core.h
|
View
|
1
2
3
|
1 chunk |
+32 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/Source/core/win/Precompile-core.cpp
|
View
|
1
2
3
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/Source/core/win/precompile-core.gypi
|
View
|
1
2
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/xml/XPathGrammar.y
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/BUILD.gn
|
View
|
|
3 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/modules.gyp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/BUILD.gn
|
View
|
|
8 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/heap/BUILD.gn
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/BUILD.gn
|
View
|
1
2
|
4 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/web.gyp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/wtf/BUILD.gn
|
View
|
|
3 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
Total messages: 23 (13 generated)
|