LARGE numbers
Alex Martelli
aleax at mail.comcast.net
Fri Nov 11 10:48:29 EST 2005
<casevh at comcast.net> wrote:
...
> Python does support large numbers, but it's not very fast for such
> large numbers. There is a Python module called GMPY that uses the GMP
> (Gnu Multiple Precision) library for faster operations on large
> numbers.
As the author of gmpy, I'd like to point out that the speed difference
isn't all that large, if all you're doing is ordinary arithmetic -- a
few times at most (it can be better if you need some of GMP's
functionality which gmpy exposes, such as primality testing).
Alex
More information about the Python-list
mailing list