Speed of horizontal flip
Dominikus Dittes Scherkl via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Apr 2 13:58:48 PDT 2015
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.
More information about the Digitalmars-d-learn
mailing list