Skip to content

0.43.0

Choose a tag to compare

@jqnatividad jqnatividad released this 07 Dec 22:29
· 118 commits to master since this release

qsv-stats 0.43.0

Performance Improvements

Online Statistics

  • Microoptimized add and add_f64 methods
  • Changed manual squaring to use powi(2) for better performance

Unsorted Module

  • Microoptimized runs vec allocation in modes_and_antimodes_on_sorted_slice
  • Optimized parallel processing for calculating cardinality
  • Microoptimized custom_percentiles_on_sorted

Frequency Module

  • Removed unused mode() function (as we normally use unsorted::modes())
  • Microoptimized most_frequent and least_frequent to use Iterator::sum for total_count instead of manual accumulation
  • Optimized Extend implementation to use size_hint when available and reliable

Bug Fixes

  • Fixed potential bug in quartiles_with_zero_copy_selection by resetting indices for index-based selection

Code Quality

  • Fixed clippy warnings including:
    • collapsible_if
    • type_complexity
    • Updated to use repeat_n where appropriate

Full Changelog: 0.42.0...0.43.0