On Sat, Nov 16, 2013 at 5:26 AM, Gabriele Svelto <gsve...@mozilla.com>wrote:

> On 14/11/2013 23:49, Ehsan Akhgari wrote:
>
>> The advantage of this is that it speeds up the compilation (I've measured
>> between 6-15x speed improvement depending on the code in question
>> locally.)
>>
>
> Another advantage would be that for mostly self-contained modules we could
> get most of the benefits of LTO without having to recur to LTO as the
> compiler would have visibility over all the sources as a single
> compilation-unit.
>
> In turn this would also allow us to remove a lot of inline methods that we
> only have in the headers for performance reasons.


Well, remember that for now we don't #include *all* of your source files in
one .cpp file, so this is actually not entirely true.  We currently group
the source files into batches of 16 and create one unified file per batch.


> As it was pointed out in the "Analyze C++/compiler usage and code stats
> easily" this could bring significant compilation time improvements too.


That is the whole point of this project.  :-)

Cheers,
--
Ehsan
<http://ehsanakhgari.org/>
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to