[issue21955] ceval.c: implement fast path for integers with a single digit
Yury Selivanov
report at bugs.python.org
Wed Feb 3 14:26:33 EST 2016
Yury Selivanov added the comment:
> Fast patch is already implemented in long_mul(). May be we should just use this function if both arguments are exact int, and apply the switch optimization inside.
Agree.
BTW, what do you think about using __int128 when available? That way we can also optimize twodigit PyLongs.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21955>
_______________________________________
More information about the Python-bugs-list
mailing list