summing large arrays - or - performance of tight loops
Dave
Dave_member at pathlink.com
Thu Apr 19 10:29:46 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
>
>
Sorry - I misunderstood you, and hadn't seen that documentation.
Thanks,
- Dave
More information about the Digitalmars-d
mailing list