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

Removing string.GetHashCode usage from distributed classes #3363

Merged

Conversation

ondrejpialek
Copy link
Contributor

Inspired by #3361

I have gone through the rest of the distributed / cluster codebase and replaced all GetHashCode calls on string instances that I could find.

I am raising this as a separate PR because these changes might not be needed. I do not know the codebase very well and in case these are private methods that do not rely on the same bucketing on remote nodes then it is fine to use GetHashCode and this PR might potentialy only slow Akka down (assuming GetHashCode is faster than the MurmurHash).

Submitting this for review and let me know if you want me to remove something but keep the rest.

@Horusiath Horusiath self-requested a review March 16, 2018 07:27
Copy link
Contributor

@Horusiath Horusiath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ondrejpialek for picking this up 👍 . Your help here is really appreciated.

@Aaronontheweb Aaronontheweb self-requested a review March 16, 2018 18:43
Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Aaronontheweb Aaronontheweb merged commit d4cde21 into akkadotnet:dev Mar 16, 2018
@Aaronontheweb Aaronontheweb added this to the 1.3.6 milestone Mar 16, 2018
@ondrejpialek ondrejpialek deleted the eradicate-string-hashcode-usage branch March 17, 2018 15:56
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