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

Speed up Hash lookups with constants #439

Merged
merged 1 commit into from Dec 12, 2016

Conversation

schneems
Copy link
Member

Since we are always looking up these hashes with an identical duplicate (not just the same value, the same object) we can take advantage of Hash.compare_by_identity.

Suggested by @dgynn in #383 (comment)

Since we are always looking up these hashes with an identical duplicate (not just the same value, the same object) we can take advantage of Hash.compare_by_identity.

Suggested by @dgynn in #383 (comment)
@schneems
Copy link
Member Author

I got a 7% speed improvement compiling http://www.codetriage.com.

@dgynn
Copy link

dgynn commented Dec 12, 2016

Awesome!

@jeremy jeremy deleted the schneems/hash-compare_by_identity branch January 24, 2017 19:43
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