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

Make sure we cache the hashCode as it will be called a lot #6

Conversation

gsmet
Copy link

@gsmet gsmet commented Jul 16, 2024

@cstamas this should help make your patch faster. We came to this conclusion in Hibernate Validator after a lot of benchmarking. Whenever you get an object that is very heavily used in HashMaps, it's often worth caching the hashCode.

@cstamas cstamas merged commit 434a5f0 into cstamas:maven-resolver-1.9.x-MRESOLVER-587 Aug 2, 2024
11 checks passed
@gsmet
Copy link
Author

gsmet commented Aug 2, 2024

@cstamas Glad to have you back :) I hope you had an awesome PTO.

This PR was for the 1.9.x branch, it also needs to be applied to the other PR.

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.

2 participants