Great trick for optimization so that code doesn't have to count size of array/list again and again.

  for (int i = 0count = objectList.Counti < counti++)
            {
                ....... = 
objectList[i];
                if (....)
                {
                    ........
                }
            }

Comments

Popular posts from this blog

Bounding Box in PIL (Python Image Library)

Dictionary vs KeyValuePair vs Struct - C#

Rendering order and Z-sorting