Thread overview
[dmd-internals] 3.5x speedup in building dmd
Jun 06, 2010
Brad Roberts
Jun 07, 2010
Walter Bright
Jun 07, 2010
Trass3r
June 06, 2010
Running

make -f linux.mak

against the original makefile takes 3:27 on my machine. I tried this to speed up building by running 4 processes at once:

make -f linux.mak -j 4

However, there are errors because the makefile does not establish dependencies properly.

The attached makefile fixes that problem. With the changed makefile, the build time falls to 0:52 on my machine - a more than 3.5x speedup.

Walter, could you please check this in? Thanks!


Andrei
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: linux.mak
URL: <http://lists.puremagic.com/pipermail/dmd-internals/attachments/20100606/37a7b1ea/attachment.ksh>
June 06, 2010
See also: http://d.puremagic.com/issues/show_bug.cgi?id=4175

I think my solution is a little more complete than yours, though I didn't do a diff of your changes, just a quick visual inspection.

On 6/6/2010 2:01 PM, Andrei Alexandrescu wrote:
> Running
> 
> make -f linux.mak
> 
> against the original makefile takes 3:27 on my machine. I tried this to speed up building by running 4 processes at once:
> 
> make -f linux.mak -j 4
> 
> However, there are errors because the makefile does not establish dependencies properly.
> 
> The attached makefile fixes that problem. With the changed makefile, the build time falls to 0:52 on my machine - a more than 3.5x speedup.
> 
> Walter, could you please check this in? Thanks!
> 
> 
> Andrei
> 
> 
> 
> _______________________________________________
> dmd-internals mailing list
> dmd-internals at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-internals

June 06, 2010
Yours is looking good too!

Andrei

On 06/06/2010 04:11 PM, Brad Roberts wrote:
> See also: http://d.puremagic.com/issues/show_bug.cgi?id=4175
>
> I think my solution is a little more complete than yours, though I didn't do a diff of your changes, just a quick visual inspection.
>
> On 6/6/2010 2:01 PM, Andrei Alexandrescu wrote:
>> Running
>>
>> make -f linux.mak
>>
>> against the original makefile takes 3:27 on my machine. I tried this to speed up building by running 4 processes at once:
>>
>> make -f linux.mak -j 4
>>
>> However, there are errors because the makefile does not establish dependencies properly.
>>
>> The attached makefile fixes that problem. With the changed makefile, the build time falls to 0:52 on my machine - a more than 3.5x speedup.
>>
>> Walter, could you please check this in? Thanks!
>>
>>
>> Andrei
>>
>>
>>
>> _______________________________________________
>> dmd-internals mailing list
>> dmd-internals at puremagic.com
>> http://lists.puremagic.com/mailman/listinfo/dmd-internals
>
> _______________________________________________
> dmd-internals mailing list
> dmd-internals at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-internals
June 06, 2010
I see a doubling of speed, but I've only got a dual core!

Andrei Alexandrescu wrote:
> Yours is looking good too!
>
> Andrei
>
> On 06/06/2010 04:11 PM, Brad Roberts wrote:
>> See also: http://d.puremagic.com/issues/show_bug.cgi?id=4175
>>
>> I think my solution is a little more complete than yours, though I
>> didn't do a
>> diff of your changes, just a quick visual inspection.
>>
>> On 6/6/2010 2:01 PM, Andrei Alexandrescu wrote:
>>> Running
>>>
>>> make -f linux.mak
>>>
>>> against the original makefile takes 3:27 on my machine. I tried this to speed up building by running 4 processes at once:
>>>
>>> make -f linux.mak -j 4
>>>
>>> However, there are errors because the makefile does not establish dependencies properly.
>>>
>>> The attached makefile fixes that problem. With the changed makefile,
>>> the
>>> build time falls to 0:52 on my machine - a more than 3.5x speedup.
>>>
>>> Walter, could you please check this in? Thanks!
>>>
>>>
>>> Andrei
>>>
>>>
>>>
>>> _______________________________________________
>>> dmd-internals mailing list
>>> dmd-internals at puremagic.com
>>> http://lists.puremagic.com/mailman/listinfo/dmd-internals
>>
>> _______________________________________________
>> dmd-internals mailing list
>> dmd-internals at puremagic.com
>> http://lists.puremagic.com/mailman/listinfo/dmd-internals
> _______________________________________________
> dmd-internals mailing list
> dmd-internals at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-internals
>
>
June 07, 2010
Is there maybe also a makefile for MinGW?