my first D program (and benchmark against perl)

Daniel Kozak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Nov 12 03:17:03 PST 2015


V Thu, 12 Nov 2015 11:03:38 +0000
Tobias Pankrath via Digitalmars-d-learn
<digitalmars-d-learn at puremagic.com> napsáno:

> > or with ~ operator:
> >
> > import std.stdio;
> >
> > [...]  
> 
> Did anyone check that the last loop isn't optimized out?

Yes, it is not optimized out

> Could also be improved further if you make the function take an
> output range and reuse one appender for every call, but that might be
> to far off the original perl solution.

I agree, that would be to far off the original solution.



More information about the Digitalmars-d-learn mailing list