 Chromium Code Reviews
 Chromium Code Reviews Issue 
            2152783002:
    Enable precompiled headers for Blink on Windows  (Closed)
    
  
    Issue 
            2152783002:
    Enable precompiled headers for Blink on Windows  (Closed) 
  | DescriptionEnable 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
   Patch Set 1 #
      Total comments: 6
      
     Patch Set 2 : Post review cleanup. #Patch Set 3 : Also enable pch for web for 1 more minute. #Patch Set 4 : Cleaning up comments #Messages
    Total messages: 23 (13 generated)
     |