[issue27298] redundant iteration over digits in _PyLong_AsUnsignedLongMask
STINNER Victor
report at bugs.python.org
Thu Mar 2 05:02:55 EST 2017
STINNER Victor added the comment:
> To sum it up, my patch degrades performance for ints smaller than (approximately) 10 ** 150, and improves performance for bigger ints.
IMHO Python language mostly handles integers smaller than 1 million, so the optimization is not a good idea :-) I had the same issue when I tried to modify Python to use GMP internally for long integers.
----------
nosy: +haypo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27298>
_______________________________________
More information about the Python-bugs-list
mailing list