D slower than C++ by a factor of _two_ for simple raytracer (gdc)

Walter Bright newshound1 at digitalmars.com
Fri Feb 15 03:33:47 PST 2008


downs wrote:
> The weird thing is: even if I inline the one spot where gdc ignores
> its opportunity to inline a function, so that I have the _same_
> call-counts as G++ (as measured with -g -pg), even then, the D code
> is slower. So it doesn't depend on missing inlining opportunities. Or
> am I missing something?

It's often worthwhile to run obj2asm on the output of each, and compare.



More information about the Digitalmars-d mailing list