Small part of a program : d and c versions performances diff.
Kapps via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jul 9 22:05:32 PDT 2014
On Wednesday, 9 July 2014 at 13:18:00 UTC, Larry wrote:
>
> You are definitely right, I did mess up while translating !
>
> I run the corrected codes (the ones I was meant to provide :S)
> and on a slow macbook I end up with :
> C : 2
> D : 15994
>
> Of course when run on very high end machines, this diff is
> almost non existent but we want to run on very low powered
> hardware.
>
> Ok, even with a longer code, there will always be a launch
> penalty for d. So I cannot use it for very high performance
> loops.
>
> Shame for us..
> :)
>
> Thanks and bye
This to me pretty much confirms that almost the entirety of your
C code is being optimized out and thus not actually executing.
More information about the Digitalmars-d-learn
mailing list