Page 1 of 1

NSArray - enumerator vs. loop

Posted: Fri Sep 24, 2004 1:07 am
by Nat!
Image
Image

The brown line is enumeration with <tt>-[NSEnumerator nextObject]</tt>
The purple line is iteration with <tt>-[NSArray objectAtIndex:]</tt>

Posted: Fri Sep 24, 2004 11:27 pm
by whitenoise
What's the disparity between the two charts?

Posted: Sat Sep 25, 2004 1:38 am
by Nat!
whitenoise wrote:What's the disparity between the two charts?


It's just a matter of scale. The top chart, has a vertical range from ca. 0 to 2000 ns and the lower chart has a y scale from 20 to 70. That way some differences, that you don't see in the top chart are revealed. Sorta like a zoom into an interesting portion.