DevPinoy.org
A Filipino Developers Community
All Tags » C » performance (RSS)
   

Browse Blog Posts by Tags

Showing related tags and posts for the Blogs application. See all tags in the site
  • Efficient For Loop

    [code language="C#"] for (int i = 0; i < collection.Count; i++) { //do something with collection } [/code] I’ve done this before and for me, the efficient way is to store the Count property of the collection rather than access it everytime for the for loop check, lots of indirection involved (I hope...
    Posted to jokiz by jokiz on 03-17-2005
    Filed under: Filed under: , , ,
Page 1 of 1 (1 items)
Copyright DevPinoy 2005-2008