Study: build times for D programs

Steven Schveighoffer schveiguy at yahoo.com
Fri Aug 24 06:34:42 PDT 2012


On Tue, 24 Jul 2012 10:34:57 -0400, Andrei Alexandrescu  
<SeeWebsiteForEmail at erdani.org> wrote:

> Hello,
>
>
> I was talking to Walter on how to define a good study of D's compilation  
> speed. We figured that we clearly need a good baseline, otherwise  
> numbers have little meaning.

Might I draw attention again to this bug:

http://d.puremagic.com/issues/show_bug.cgi?id=4900

Granted, this is really freaking old.  A re-application of profiling  
should be done.

But in general, what I have observed from DMD compiling is that the number  
and size (string size) of symbols is what really bogs it down.  Most of  
the time, it's lightning fast.

The reason the dcollections unit test taxes it so much is because I'm  
instantiating 15 objects for each container type, and each one has  
humongous symbols, a consequence of so many template arguments.

-Steve


More information about the Digitalmars-d mailing list