On Wednesday, 1 April 2015 at 14:00:52 UTC, bearophile wrote:
If you have to perform performance benchmarks then use ldc or gdc.

Also disable bound tests with your compilation switches.

Add the usual pure/nothrow/@nogc/@safe annotations where you can (they don't increase speed much, usually).

if you are using classes don't forget to make the method final.

Profile the code and look for the performance bottlenecks.

This very text should be placed somewhere prominent at the D
homepage if we don't want to constantly dissapoint people who
come with the impession that D should be at the same speed level
as C/C++ but their test programs aren't.

Reply via email to