DMD compilation speed

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 1 01:23:53 PDT 2015


"lobo"  wrote in message news:vydmnbzapttzjnnctizm at forum.dlang.org...

> I think the main culprit now is my attempts to (ab)use CTFE. After 
> switching to DMD 2.066 I started adding `enum val=f()` where I could. 
> After reading the discussions here I went about reverting most of these 
> back to `auto val=<blah>` and I'm building again :-)
>
> DMD 2.067 is now maxing out at ~3.8GB and stable.

Yeah, the big problem is that dmd's interpreter sort of evolved out of the 
constant folder, and wasn't designed for ctfe.  A new interpreter for dmd is 
one of the projects I hope to get to after DDMD is complete, unless somebody 
beats me to it. 



More information about the Digitalmars-d mailing list