-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-39434: Improve float __floordiv__ performance and error message #18147
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
Conversation
@mdickinson, @vstinner |
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.
Neat trick: I was worried about duplicated code (see the issue discussion), but it seems we can rely on the compiler to inline _float_div_mod
and then strip out the redundant stuff.
LGTM
Is there benefit to applying the same approach to |
Sorry, of course that doesn't apply, since |
@vstinner @pablogsal If you don't mind can you please take a look? :) |
I've done some manual testing as well as reviewing. Still LGTM. |
https://bugs.python.org/issue39434