EvgenyKarkan/EKAlgorithms

To optimize each loop.

EvgenyKarkan opened this issue · 4 comments

Every single loop will be faster without any additional computations and methods call.
E.g "[array count]" in loop such as "for (NSUinteger i = 0; i < [array count]; i++)" should be extracted to independent local variable NSUinteger counter = [array count].
So the loop will be faster & look like "for (NSUinteger i = 0; i < counter; i++)".

I believe we can close this, as the most of such cases are fixed.

Ok, let it be so. ;)

They really are, I've just fixed the last two loops. Looks like it is done.

Reopened cuz we have a bunch of stuff to do.