rust-lang/rust-clippy
GitHub で見るlint long chains of into/float additions/multiplications
Open
#1,243 opened on 2016年9月25日
A-lintL-perfT-ASTgood first issue
説明
In generall, (a+b+c)+(d+e+f) is faster to compute than a+b+c+d+e+f, because the former reduces data dependencies, allowing the CPU to run additions in parallel. For float arithmetic, the tree-like addition may improve numerical stability. Suggest inserting parenthesis.