D for scientific computing
lomereiter
lomereiter at gmail.com
Thu Jan 24 18:17:55 PST 2013
On Friday, 25 January 2013 at 00:25:46 UTC, Joseph Rushton
Wakeling wrote:
> If I remove the writef statements, leaving just the
> number-crunching part, it runs in about 4s with gdmd, 7s with
> ldmd2 and 14s (!) with dmd.
From my experience, writef and friends are substantially slower
than printf. I wouldn't recommend using them for output-intensive
applications. And of course, the best option is to avoid any
format string parsing altogether, using only fwrite calls.
More information about the Digitalmars-d
mailing list