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/
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
statsandfrequencycommands 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/