-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To optimize each loop. #49
Comments
stanislaw
added a commit
that referenced
this issue
Mar 31, 2014
- Add some tests - Correct counts "To optimize each loop." (#49) - Other minor cleanups
I believe we can close this, as the most of such cases are fixed. |
Ok, let it be so. ;) |
stanislaw
added a commit
that referenced
this issue
Mar 31, 2014
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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++)".
The text was updated successfully, but these errors were encountered: