[issue5512] Streamline integer division
STINNER Victor
report at bugs.python.org
Thu Mar 19 00:27:22 CET 2009
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
My numbers:
# No patch
$ ./python /home/haypo/pidigits-2.py 3000
Python 3.1a1+ (py3k:70466, Mar 18 2009, 23:56:06)
[GCC 4.3.2]
CPU: 64 bits, little endian
PyLong: base=2^30, sizeof(digit)=32 bits
(...)
Best Time; 2300.2 ms
# With faster_integer_division.patch
(...)
Best Time; 1138.1 ms
Ok, it's two times faster on 64 bits CPU!!!
Other notes about pidigits:
- missing header (no author name, no description)
- pidigit should also write the number of digits in its output to
avoid mistakes in comparaisons
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5512>
_______________________________________
More information about the Python-bugs-list
mailing list