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