Woeful performance of D compared to C++

Lionello Lunesu lionello at lunesu.remove.com
Thu Jan 18 12:58:03 PST 2007


"Walter Bright" <newshound at digitalmars.com> wrote in message 
news:eoomm5$20qk$1 at digitaldaemon.com...
> Dave wrote:
>>
>> D's rand() is slow.
>
> True. C's rand() is fast, but is known to be not very random. As you 
> pointed out, D users can use either as required.

This might solve the performace in this case, but Walter, have you checked 
the thread "Why is this D code slower than C++" in digitalmars.D.learn ?

It's comparing DMD to DMC, and DMD's exe takes more than twice as long to 
complete than DMC's. Compiler flags, GC, the obvious things have been 
checked. Your insight would be appreciated.

L. 





More information about the Digitalmars-d mailing list