D outperformed by C++, what am I doing wrong?
amfvcg via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Aug 13 01:43:29 PDT 2017
On Sunday, 13 August 2017 at 08:33:53 UTC, Petar Kirov
[ZombineDev] wrote:
>
> With Daniel's latest version (
> http://forum.dlang.org/post/mailman.5963.1502612885.31550.digitalmars-d-learn@puremagic.com )
>
> $ ldc2 -O3 --release sum_subranges2.d
> $ ./sum_subranges2
> 210 ms, 838 μs, and 8 hnsecs
> 50000000
Great!!! And that's what I was hoping for.
So the conclusion is:
use the latest ldc that's out there.
Thank you Petar, thank you Daniel. (I cannot change the subject
to SOLVED, can I?)
Btw. the idiomatic version of this d sample looks how I imagined
it should!
More information about the Digitalmars-d-learn
mailing list