D 50% slower than C++. What I'm doing wrong?

jerro a at a.com
Sat Apr 14 19:37:29 PDT 2012


On Sunday, 15 April 2012 at 02:20:34 UTC, Joseph Rushton Wakeling 
wrote:
> On 14/04/12 23:03, q66 wrote:
>> He also uses a class. And -noboundscheck should be 
>> automatically induced by
>> -release.
>
> Ahh, THAT probably explains why some of my numerical code is so 
> markedly different in speed when compiled using DMD with or 
> without the -release switch.
>  It's a MAJOR difference -- between code taking say 5min to 
> run, compared to half an hour or more.

I know this isn't what your post was about, but you really should 
compile numerical code with GDC instead of DMD if you care about 
performance. It generates much faster floating point code.


More information about the Digitalmars-d-learn mailing list