Skip to content

perf: take advantage of upcoming algebraic operators in Rust 1.98 #4391

Description

@jqnatividad

By default, the Rust compiler is conservative with float operations to minimize rounding errors and to make sure float operation results are the same in debug and release mode.

The upcoming Rust 1.98 introduces algebraic operators that will unlock additional performance options for the compiler - this will accelerate float operations and make the stats and frequency commands faster still.

https://pythonspeed.com/articles/faster-float-math-rust/
https://doc.rust-lang.org/std/primitive.f32.html#algebraic-operators
https://releases.rs/docs/1.98.0/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions