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

Minor cleanups to eachOfLimit #1245

Merged
merged 1 commit into from Jul 21, 2016
Merged

Minor cleanups to eachOfLimit #1245

merged 1 commit into from Jul 21, 2016

Conversation

megawac
Copy link
Collaborator

@megawac megawac commented Jul 20, 2016

Although I made a couple micro perf optimizations (avoiding a couple extra function calls) there are no real changes to performance.

I did find another minor optimization was to aggressively set the iterateeCallback to null when done (in which case we could also kill the done variable)

@aearly
Copy link
Collaborator

aearly commented Jul 20, 2016

LGTM. Even if it doesn't affect performance, at least we can get rid of that eslint loopfunc exception.

@megawac
Copy link
Collaborator Author

megawac commented Jul 21, 2016

Actually I ran the bench marks wrong (forgot to compile first). This is a slight optimization (~5%). Going to test the aggressive optimization now

@megawac megawac merged commit 72a7810 into master Jul 21, 2016
@megawac megawac deleted the each-cleanup branch July 21, 2016 14:57
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

Successfully merging this pull request may close these issues.

None yet

2 participants