Skip to content

Only coerce address to a string once #1860

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

Merged
merged 1 commit into from
Sep 19, 2014
Merged

Conversation

megawac
Copy link
Collaborator

@megawac megawac commented Sep 19, 2014

Can be a bit faster for when the address is any sort of non string. In that case toString is called 2-3 times on the object

http://jsperf.com/memoizel/2

akre54 added a commit that referenced this pull request Sep 19, 2014
Only coerce address to a string once
@akre54 akre54 merged commit 65d1eec into jashkenas:master Sep 19, 2014
@megawac megawac deleted the memoize-lu branch September 19, 2014 19:41
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.

3 participants