Skip to content

Add fields sorting (primitives first) in case class equals #5838

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
Feb 22, 2019

Conversation

tim-zh
Copy link
Contributor

@tim-zh tim-zh commented Feb 4, 2019

port of scala/scala/pull/7374

Compare primitive fields first, slow equality checks of non-primitive fields can be skipped when primitives differ.

Copy link
Member

@dottybot dottybot left a comment

Choose a reason for hiding this comment

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

Hello, and thank you for opening this PR! 🎉

All contributors have signed the CLA, thank you! ❤️

Have an awesome day! ☀️

@tim-zh tim-zh force-pushed the sort_fields_in_case_class_equals branch from 19443ef to 81537b9 Compare February 4, 2019 16:52
@tim-zh tim-zh force-pushed the sort_fields_in_case_class_equals branch from 81537b9 to e2ec1bf Compare February 4, 2019 21:49
@odersky
Copy link
Contributor

odersky commented Feb 9, 2019

@allanrenucci @smarter Are there more remarks?

@odersky odersky merged commit 0a5349d into scala:master Feb 22, 2019
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.

5 participants