[issue1087418] long int bitwise ops speedup (patch included)

Antoine Pitrou report at bugs.python.org
Sat Oct 24 08:50:15 CEST 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

The type is an important performance factor but most uses of it are for
small ints (< 2**32 or 2**64), so your approach wouldn't make much of a
difference.
Besides, there are already some improvements in the py3k branch (for
example, longs now use 30-bit "digits" on 64-bit systems).

> I am aware of the
> following 'speed tweaks' in Python 2.x integers, aren't these lost now?

Yes, they are. As a result, calculations on small ints have become a bit
slower.

----------
nosy: +pitrou
versions: +Python 3.2 -Python 2.6, Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1087418>
_______________________________________


More information about the Python-bugs-list mailing list