Skip to content
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

Open
EvgenyKarkan opened this issue Feb 28, 2014 · 4 comments
Open

To optimize each loop. #49

EvgenyKarkan opened this issue Feb 28, 2014 · 4 comments
Assignees

Comments

@EvgenyKarkan
Copy link
Owner

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++)".

@EvgenyKarkan EvgenyKarkan self-assigned this Feb 28, 2014
stanislaw added a commit that referenced this issue Mar 31, 2014
- Add some tests
- Correct counts "To optimize each loop." (#49)
- Other minor cleanups
@stanislaw
Copy link
Collaborator

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

@EvgenyKarkan
Copy link
Owner Author

Ok, let it be so. ;)

stanislaw added a commit that referenced this issue Mar 31, 2014
@stanislaw
Copy link
Collaborator

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

@EvgenyKarkan EvgenyKarkan reopened this Aug 26, 2014
@EvgenyKarkan
Copy link
Owner Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants