Skip to content

apply clippy float optimization recommendations - #181

Open
Lucas-BRT wants to merge 2 commits into
pollen-robotics:mainfrom
Lucas-BRT:main
Open

apply clippy float optimization recommendations#181
Lucas-BRT wants to merge 2 commits into
pollen-robotics:mainfrom
Lucas-BRT:main

Conversation

@Lucas-BRT

Copy link
Copy Markdown

This PR applyes the following clippy nursery recomendations:

https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#imprecise_flops
https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#suboptimal_flops

Some of then can affect the readability (specially for the mathematical point of view), but the speed gain can have some benefit in the final product. i don't have the hardware to test, so i can't measure the exact speed gains in a specific processor in normal conditions, i will be grateful if someone can test if this have some real gains or we should only add a #[allow] for the linter.

Also, not related to this PR in specific, but in some places the codebase triggers other Linter warnings, like using the Struct name instead of Self, is some specific reason for this or i can open a PR to fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant