Finding large difference b/w execution time of c++ and D codes for same problem
Marco Leise
Marco.Leise at gmx.de
Wed Feb 13 06:36:35 PST 2013
Am Wed, 13 Feb 2013 14:48:21 +0100
schrieb Joseph Rushton Wakeling <joseph.wakeling at webdrake.net>:
> On 02/13/2013 02:26 PM, Marco Leise wrote:
> > You get both, 50% more speed and more precision! It is a
> > win-win situation. Also take a look at Phobos' std.math that
> > returns real everywhere.
>
> I have to say, it's not been my experience that using real improves speed.
> Exactly what optimizations are you using when compiling?
The target is Linux, AMD64 and the compiler arguments are:
ldc2 -O5 -check-printf-calls -fdata-sections -ffunction-sections -release -singleobj -strip-debug -wi -L=--gc-sections -L=-s
--
Marco
More information about the Digitalmars-d-learn
mailing list