-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
algorithms/GenericFunctions: x == 0
-> iszero(x)
#1869
algorithms/GenericFunctions: x == 0
-> iszero(x)
#1869
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1869 +/- ##
==========================================
- Coverage 88.17% 88.15% -0.02%
==========================================
Files 120 120
Lines 30220 30250 +30
==========================================
+ Hits 26645 26668 +23
- Misses 3575 3582 +7 ☔ View full report in Codecov by Sentry. |
Sorry, I should have just written it here once. I don't think this is an improvement. |
It is measurably an improvement in terms of performance (of course! we know that), albeit a very small one:
So one can of course argue whether it is worth it in these situations. Then again, why not take advantage of this, however minor it may be? The code isn't harder to read one way or the other, is it? Whether the code looks better one way or another is a matter of taste? |
Ah sorry, I was not thinking about BigInt case. Everything is fine then. |
Co-authored-by: Max Horn <[email protected]>
Updates #1868