Skip to content

Conversation

@pasabanov
Copy link
Member

Types of changes

  • Performance
  • Testing (forced by other changes)

Description

  • Changed parameter type Number to const Number& where applicable.
    This improves performance for custom data types like arbitrary-precision or symbolic numbers, but may slightly reduce performance when using float or double as Number.

  • Reduced the precision of tests for quadratic and cubic splines on "Fast" and "FastParallel" profiles, as the precision was unexpectedly affected by optimizations from the -Ofast option, specifically -ffast-math.
    The behavior remains unchanged on other profiles.

- Changed parameter type `Number` to `const Number&` where applicable.
  This improves performance for custom types like arbitrary-precision or symbolic numbers,
  but slightly reduces performance for fundamental types like `float` or `double`.

- Reduced the precision of tests for quadratic and cubic splines on "Fast" and "FastParallel" profiles,
  as the precision was unexpectedly affected by optimizations from the `-Ofast` option, specifically `-ffast-math`.
  The behavior remains unchanged on other profiles.
@pasabanov pasabanov added perf Improve performance, speed, or resource usage tests Adding or changing tests labels Apr 28, 2025
@pasabanov pasabanov added this to the First Release Version milestone Apr 28, 2025
@pasabanov pasabanov self-assigned this Apr 28, 2025
@pasabanov pasabanov changed the title perf: Improved performance by changing parameters Number to const Number& perf: Changed parameter type Number to const Number& Apr 28, 2025
@pasabanov pasabanov merged commit fad17fd into main Apr 28, 2025
7 checks passed
@pasabanov pasabanov deleted the perf branch April 28, 2025 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

perf Improve performance, speed, or resource usage tests Adding or changing tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants