Increasing D Compiler Speed by Over 75%

Richard Webb richard.webb at boldonjames.com
Fri Aug 2 04:18:38 PDT 2013


On 01/08/2013 00:32, Walter Bright wrote:
> Thanks for doing this, this is good information.
>
> On 7/31/2013 2:24 PM, Rainer Schuetze wrote:
>> I have just tried yesterdays dmd to build Visual D (it builds some
>> libraries and
>> contains a few short non-compiling tasks in between):
>>
>> Debug build dmd_dmc: 23 sec, std new 43 sec
>> Debug build dmd_msc: 19 sec, std new 20 sec
>
> That makes it clear that the dmc malloc() was the dominator, not code gen.
>


It still appears that the DMC malloc is a big reason for the difference 
between DMC and MSVC builds when compiling the algorithm unit tests. (a 
very quick test suggests that changing the global new in rmem.c to call 
HeapAlloc instead of malloc gives a large speedup).



More information about the Digitalmars-d-announce mailing list