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

[Java] - Compare equality of primitives before objects #171

Open
rahul-malik opened this issue Mar 7, 2019 · 0 comments
Open

[Java] - Compare equality of primitives before objects #171

rahul-malik opened this issue Mar 7, 2019 · 0 comments
Labels

Comments

@rahul-malik
Copy link
Collaborator

This is a simple optimization we can do since comparison of primitives is almost guaranteed to be a lot faster to compare objects with multiple properties and we can take advantage of the expression short-circuit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant