[webkit-dev] Compiling WebKit up to 25% faster in Windows?

Filip Pizlo fpizlo at apple.com
Wed Mar 27 12:50:10 PDT 2013


On Mar 27, 2013, at 12:40 PM, Pau Garcia i Quiles <pgquiles at elpauer.org> wrote:

> Hello,
> 
> This thread already contains about 30 speculative messages. What about providing a patch for the whole WebKit and some benchmarks on the main platforms and compilers?

Good idea, want to write such a patch and put it up for review?

-F


> 
> 
> On Tue, Mar 26, 2013 at 7:21 PM, Daniel Bratell <bratell at opera.com> wrote:
> Hi WebKittens,
> 
> As you might be aware, we at Opera now have Chromium based products which means that we compile WebKit quite a lot. A big issue for us and our automatic systems has been the long time needed to compile WebKit (inside Chromium), especially in Windows.
> 
> The big compilation time difference between Linux and Windows didn't seem to make sense so we did some analysis of what was going on and we think that we have found a cause. In WebKit include directives are without path, and instead the compiler is given a very long list of directories to search through. That process takes a lot of time in Windows. It must take some time in OSX and in Linux too but probably less.
> 
> As an experiment we took the (chromium) project webcore_dom, that normally compiles in 56 seconds in Windows on a generic computer and "fixed" it. Removing the many include paths in the build system and instead specifying the path in the include directives changed that to 42 seconds, a 25% reduction.
> 
> There is no reason to think the same reduction doesn't apply to all projects and then there are many many minutes to save for developers and build servers here.
> 
> Caveat: I don't know if the resulting binary is correct.
> 
> Is this something that has been talked about in the past, and would you be interested in replacing the long list of directories to search for every include with paths (relative some good base) directly in the include directives?
> 
> /Daniel
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-dev
> 
> 
> 
> -- 
> Pau Garcia i Quiles
> http://www.elpauer.org
> (Due to my workload, I may need 10 days to answer)
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20130327/6d480d06/attachment.html>


More information about the webkit-dev mailing list