Summary: Template compilation slower than G++ 4.5
--- Comment #0 from bearophile_h...@eml.cc 2010-11-25 20:17:36 PST ---
Created an attachment (id=832)
D2 version of the benchmark
This performance bug may share the same cause of bug 4900
If this turns out to be true then we may close this as resolved duplicated.
In attach there are two programs that perform many computations at compile time
using just templates, one written in C++ and one in D2.
This is not idiomatic D code, because for this purpose CTFE is better, but it
may be good enough as first performance benchmark for templates.
Compilation time (N=7): G++ 0.95 seconds, dmd 12.4 seconds.
G++ uses about 34 MB RAM, DMD about 130+ MB RAM.
I have used MinGW 4.5.1 and DMD 2.050.
g++ nqueens_cpp.cpp -o nqueens_cpp
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------