N-body bench

Stanislav Blinov stanislav.blinov at gmail.com
Thu Jan 30 08:21:44 PST 2014


On Thursday, 30 January 2014 at 15:37:24 UTC, bearophile wrote:
> Stanislav Blinov:
>
>> Forgot one slice assignment in toDobule2(). Now the results 
>> are more interesting:
>
> Is the latest link shown the last version?

No. In toDouble2() on line 13:

replace result.array = args[0]

with result.array[0] = args[0]; result.array[1] = args[0];

> I need the 0.13.0-alpha1 to compile the code.
> I am seeing a significant performance difference between C++ 
> and D-ldc2.

You mean with your current version of ldc?


More information about the Digitalmars-d-learn mailing list