Article: Increasing the D Compiler Speed by Over 75%

Dmitry S ds.dlang at gmail.com
Thu Jul 25 11:49:21 PDT 2013


On Thu, Jul 25, 2013 at 2:25 PM, Walter Bright
<newshound2 at digitalmars.com>wrote:

> On 7/25/2013 11:21 AM, bearophile wrote:
>
>> Andrei Alexandrescu:
>>
>>  http://www.reddit.com/r/**programming/comments/1j1i30/**
>>> increasing_the_d_compiler_**speed_by_over_75/<http://www.reddit.com/r/programming/comments/1j1i30/increasing_the_d_compiler_speed_by_over_75/>
>>>
>>>
>> Where is the 75% value coming from?
>>
>
> Not sure what you mean. Numbers at the end of the article.
>
>
I am also confused by the numbers. What I see at the end of the article is
"21.56 seconds, and the latest development version does it in 12.19", which
is really a 43% improvement. (Which is really great too.)


>
>
>  Regarding the hashing, maybe a different hashing scheme, like Python dicts
>> hashing could be better.
>>
>
> It's not the hashing that's slow. It's the lookup that is.
>
>
>
>  Regarding Don's problems with memory used by dmd, is it a good idea to
>> add a
>> compilation switch like "-cgc" that switches on a garbage collector for
>> the
>> compiler (disabled on default)?
>>
>
> It might be.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-announce/attachments/20130725/4f77f48c/attachment.html>


More information about the Digitalmars-d-announce mailing list