Slow performance compared to C++, ideas?

deadalnix deadalnix at gmail.com
Thu May 30 23:11:58 PDT 2013


On Friday, 31 May 2013 at 05:59:00 UTC, finalpatch wrote:
> You guys are awesome! I am happy to know that D can indeed 
> offer comparable speed to C++.
>
> But it also shows there is room for the compiler to improve as 
> the C++ version also makes heavy use of loops (or STL 
> algorithms) but they get inlined or unrolled automatically.
>

Have you tried to use GDC or LDC ? They use similar optimizers 
and code generator than GCC and clang, so should be able to do it 
as well.


More information about the Digitalmars-d mailing list