-
Notifications
You must be signed in to change notification settings - Fork 73
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
Performance improvements with if()
+ else()
instead of ifelse()
#1006
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1006 +/- ##
==========================================
- Coverage 91.11% 91.07% -0.05%
==========================================
Files 46 46
Lines 2635 2644 +9
==========================================
+ Hits 2401 2408 +7
- Misses 234 236 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 0d8b2ce is merged into main:
Further explanation regarding interpretation and methodology can be found in the documentation. |
Unfortunately, not as impressive as I would have expected it to be. So I will let you decide if this is worth merging. |
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 0d8b2ce is merged into main:
Further explanation regarding interpretation and methodology can be found in the documentation. |
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 0d8b2ce is merged into main:
Further explanation regarding interpretation and methodology can be found in the documentation. |
The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That benchmark is also the least of our concern because applying the cache is already 'instant'. I am ok with the changes. They certainly do not make things worse in terms of performance and readibility is not hurt too much. And the int conversions also make sense.
if()
+ else()
instead of ifelse()
if()
+ else()
instead of ifelse()
cf. #759 (comment)