summing large arrays - or - performance of tight loops

Craig Black cblack at ara.com
Thu Apr 19 07:44:38 PDT 2007


>  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 





More information about the Digitalmars-d mailing list