Why is this D code slower than C++? (real results)

Lionello Lunesu lio at lunesu.remove.com
Wed Jan 17 07:23:54 PST 2007


OK, ignore my previous post (it was with a debug build of Phobos).

dmd -O -inline -release: 17.7 secs
dmc -o+speed: 7.6 secs

Averaged over 3 runs.

This is without Bill's "inout" optimization, but with RegisterClass 
fixed. Also,

I've also included a std.gc.disable() and I've replaced a "long" with 
"int", but these changes did not have any effect.

L.


More information about the Digitalmars-d-learn mailing list