D code optimization

Jonathan Marler via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Sep 22 10:52:00 PDT 2016


On Thursday, 22 September 2016 at 16:09:49 UTC, Sandu wrote:
> It is often being claimed that D is at least as fast as C++.
> Now, I am fairly new to D. But, here is an example where I want 
> to see how can this be made possible.
>
> So far my C++ code compiles in ~850 ms.
> While my D code runs in about 2.1 seconds.

Can you include the C++ source code, the C++ compiler command 
line, and the D compiler command line?




More information about the Digitalmars-d-learn mailing list