Template performance

Steven Schveighoffer schveiguy at yahoo.com
Tue Nov 23 12:45:08 PST 2010


On Tue, 23 Nov 2010 13:27:22 -0500, bearophile <bearophileHUGS at lycos.com>  
wrote:

> Steven Schveighoffer:
>
>> This might be due to a bug I reported how DMD is very slow when dealing
>> with lots of templates.
>>
>> See http://d.puremagic.com/issues/show_bug.cgi?id=4900
>
> Right, it may be the same cause. Are you able & willing to perform a  
> similar profiling of DMD while it compiles that little template-nqueen D  
> bench? (How do you profile the DMD compiler?)

basically, I downloaded the svn source for dmd, then edited the makefile  
to add the profile flags (I think they are commented out), and finally run  
the profiler.  I've run into cases where I thought I did it right and I  
really didn't, so it's not an easy thing.  I can't remember off the top of  
my head what they are, but something like -gp?

Remember however that the default build of dmd from svn is debug mode, so  
if you profile that, you will likely get the wrong results.

-Steve


More information about the Digitalmars-d mailing list