Code speed [was: Re: Memory leak with dynamic array]

bearophile bearophileHUGS at lycos.com
Tue Apr 13 17:23:56 PDT 2010


Joseph Wakeling:
> OK.  I'm just bemused about why -- having solved the memory leak -- my D
> code is running significantly slower than equivalent C++ code.

I'll try to take a look at your D code. In the meantime you can show the equivalent C++ code too, so I can compare.
Note that dmd has an old backend, so it doesn't optimize as well as g++ or as llvm. LDC is often able to optimize better.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list