MonoTouch - foreach vs for loops (performance)

Posted by ifwdev on Stack Overflow See other posts from Stack Overflow or by ifwdev
Published on 2010-05-23T02:49:28Z Indexed on 2010/05/23 3:30 UTC
Read the original article Hit count: 269

Filed under:
|
|
|

Normally I'm well aware that a consideration like this is premature optimization. Right now I have some event handlers being attached inside a foreach loop. I am wondering if this style might be prone to leaks or inefficient memory use due to closures being created. Is there any validity to this thinking?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about foreach