[issue46055] Speed up binary shifting operators
Mark Dickinson
report at bugs.python.org
Mon Dec 27 13:40:50 EST 2021
Mark Dickinson <dickinsm at gmail.com> added the comment:
Two separate significant improvements have been pushed: thanks, Xinhang Xu!
The original PR also contained a reworking of the general case for right-shifting a negative integer. The current code (in main) for that case does involve some extra allocations, and it ought to be possible to write something that doesn't need to allocate temporary PyLongs.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46055>
_______________________________________
More information about the Python-bugs-list
mailing list