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

Speeding up Ordering_Comparator #10593

Merged
merged 6 commits into from
Jul 19, 2024
Merged

Conversation

JaroslavTulach
Copy link
Member

@JaroslavTulach JaroslavTulach commented Jul 18, 2024

Pull Request Description

Fixes #10539 by implementing the Ordering_Comparator.compare without delegating to to_sign - that would require another comparator and would slow things down.

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • All code follows the
    Scala,
    Java,
  • Unit continue to pass
  • Benchmarks (especially Max_Stats) are faster: benchmarks run

Copy link
Member

@radeusgd radeusgd left a comment

Choose a reason for hiding this comment

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

Great improvement

Just some code style comments in Ordering_Helpers.

@JaroslavTulach JaroslavTulach merged commit c0f5759 into develop Jul 19, 2024
43 checks passed
@JaroslavTulach JaroslavTulach deleted the wip/jtulach/MaxStats10539 branch July 19, 2024 02:08
@JaroslavTulach
Copy link
Member Author

Max_Stats benchmark is down where it was before #10355:

Max_Stats

  • Collections_list_fold is good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: No changelog needed Do not require a changelog entry for this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Up to 200% benchmarks regression after integrating Comparable.from return type check
3 participants