summing large arrays - or - performance of tight loops
Dan
murpsoft at hotmail.com
Thu Apr 19 08:06:44 PDT 2007
Craig Black Wrote:
> > I think the "trust the compiler" philosophy is for stability (20 years
> > old), not optimizations.
>
> Nope. Read the documentation on foreach. It says specifically that foreach
> is preferred over other looping mechanisms because the compiler will
> optimize it.
>
> -Craig
I'm not going to change any foreach code over. I'm going to wait until someone in Walter's group fixes it. : )
More information about the Digitalmars-d
mailing list