summing large arrays - or - performance of tight loops

Dave Dave_member at pathlink.com
Mon Apr 23 12:29:05 PDT 2007


Dave wrote:
> 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.
> 

I still haven't seen that documentation 'cause I can't find it in the foreach section. Could you 
point it out?

> Thanks,
> 
> - Dave



More information about the Digitalmars-d mailing list