Profiling DMD's Compilation Time with dmdprof

Vladimir Panteleev thecybershadow.lists at gmail.com
Thu Nov 8 15:49:12 UTC 2018


On Thursday, 8 November 2018 at 07:54:56 UTC, Manu wrote:
> https://youtu.be/msWuRlD3zy0
>
> DMD only builds with one core, since it builds altogether.
> And all builds are release builds... what good is a debug 
> build? DMD
> is unbelievably slow in debug. If it wasn't already slow 
> enough... if
> I try and build with a debug build, it takes closer to 5 
> minutes.

I think the default posix.mak target is neither a debug nor a 
release build, meaning it is neither optimized nor has the 
additional asserts/invariants of a debug build. Not sure the 
Visual Studio solution has that, but perhaps it could be an 
acceptable middle ground.

> I suspect one part of the problem is that DMD used to be built 
> with a C compiler, and now it's built with DMD...

Well, my latest test was against master, that even has parts of 
the backend apparently converted to D, so I'm not sure that's 
relevant.



More information about the Digitalmars-d-announce mailing list