Skip to content

Conversation

@jqnatividad
Copy link
Collaborator

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR optimizes the performance of non-streaming bivariate statistics computation in the moarstats command by replacing floating-point comparisons and improving memory allocation patterns.

Key changes:

  • Replaced partial_cmp with total_cmp for sorting and comparison operations in correlation coefficient calculations
  • Changed tie detection from EPSILON-based comparison to exact equality comparison
  • Optimized memory allocation using pre-allocated vectors with Vec::with_capacity + extend
  • Replaced element-by-element copying with copy_from_slice for better performance

@jqnatividad jqnatividad merged commit 5581415 into master Dec 29, 2025
22 of 23 checks passed
@jqnatividad jqnatividad deleted the moarstats-faster-spearman-kendall-tau branch December 29, 2025 20:17
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