On Tue, 23 Nov 2010 13:27:22 -0500, bearophile <[email protected]> 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

Reply via email to