Performance
Adam D. Ruppe via Digitalmars-d
digitalmars-d at puremagic.com
Fri May 30 07:03:18 PDT 2014
On Friday, 30 May 2014 at 13:35:59 UTC, Thomas wrote:
> return (format("%s %f","plus\nLast: ", sum) );
I haven't actually run this but my guess is that the format
function is the slowish thing here. Did you create a new string
in the C version too?
> gdc ./source/perf/testperf.d -frelease -o testperf
The -O3 switch might help too, which turns on optimizations.
More information about the Digitalmars-d
mailing list