From 870297b2f86f60eb5404f83c3a64a203ec4fa28d Mon Sep 17 00:00:00 2001 From: joep van der velden Date: Tue, 19 May 2020 13:02:50 +0200 Subject: [PATCH] multiplications not faster than divisions --- .github/CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index a5b1484486b..825ab51d7c3 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -479,7 +479,7 @@ in the SQL/updates folder. * You are expected to help maintain the code that you add, meaning that if there is a problem then you are likely to be approached in order to fix any issues, runtimes, or bugs. -* Do not divide when you can easily convert it to multiplication. (ie `4/2` should be done as `4*0.5`) +* Multiplications are not significantly faster than divisions. Use whichever operation makes the code more readable. * If you used regex to replace code during development of your code, post the regex in your PR for the benefit of future developers and downstream users.