-
-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
gh-119192: Remove #ifndef SLOW_SUM
check from sum()
, use #if 1
#119193
Conversation
I don't think I own this file any more, and I have no idea what this is about -- maybe @tim-one does? It looks like the git blame isn't useful -- the people blamed are just the ones who merged a branch. |
I already commented on the Issue Report: no strong opinion, but I'd personally change it to |
Okay let's just leave it alone. |
#ifndef SLOW_SUM
check from sum()
#ifndef SLOW_SUM
check from sum()
, use #if 1
Thanks a lot for the feedback, I followed the idea described in #119192 (comment) So, it is up to module owners to decide: to close this PR or to use |
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.
I think Tim's suggestion of making this #if 1
instead of using a macro is fine. FWIW, I would never leave such a personal debugging tool in the code base.
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.
I'd skip news for this, FWIW.
I still vote for leaving it as is. In the future, people who are curious about this will find the issue here and that will explain it to them. |
FWIW, the current flag was recently useful to me while testing the improved accuracy summation feature. An Also, the alternate code paths have been present for almost two decades -- there isn't a real world problem being solved here. BTW, is not a "personal debugging tool". Any developer who wants to do future work on this (perhaps adding a high-accuracy path for complex numbers) would benefit. There is a forseeable recurring need to be able to compare a specialized path with a base case. |
Or I might be wrong and it is actually useful :)
In this case, we might want to document it maybe? Or add to
./configure
?SLOW_SUM
flag insum
builtin #119192