I think were I to try attacking this, I would write a script to
generate a list of includes, and the number of cpp files which include
them.

Then I would work from the most-included end of that list, trying to
reduce the number of files include each include.

-eric

On Tue, Jun 8, 2010 at 4:04 PM, David Kilzer <ddkil...@webkit.org> wrote:
> On Jun 8, 2010, at 3:17 PM, Eric Seidel <e...@webkit.org> wrote:
>
>> On my Intel Core 2 Duo MBP a full build takes over 1 hour.  5 years
>> ago, on my g4 laptop a full build took around 40m.  :(  We seem to be
>> slowly moving in the wrong direction.
>
> Was that before or after SVG was enabled in the engine?  :)  In general, I 
> think the amount of code in WebCore has increased since 2005, which probably 
> has more of an affect than unused headers.
>
> Having said that, I thought it would be useful to write a script that would 
> remove individual headers on a file-by-file basis and recompile WebKit to 
> find unused header candidates.  I haven't had time to write such a script, 
> though.
>
> Dave
>
>
_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to