Slow performance compared to C++, ideas?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri May 31 07:49:21 PDT 2013


On 5/31/13 9:07 AM, finalpatch wrote:
> D is very strong at TMP, it provides a lot more tools
> specifically designed for TMP, that is vastly superior than C++
> which relies on abusing the templates. This is actually the main
> reason drawing me to D: TMP in a more pleasant way. IMO one thing
> D needs to address is less surprises, eg. innocent looking code
> like v[] = [x,x,x] shouldn't cause major performance hit. In c++
> memory allocation is explicit, either operator new or malloc, or
> indirectly through a method call, otherwise the language would
> not do heap allocation for you.

It would be great if we addressed that in 2.064. I'm sure I've seen the 
report in bugzilla, but the closest I found were:

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


Andrei



More information about the Digitalmars-d mailing list