STINNER Victor <victor.stin...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue5512> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com