[Python-Dev] int/float freelists vs pymalloc

Christian Heimes lists at cheimes.de
Sat Feb 9 00:22:51 CET 2008


Martin v. Löwis wrote:
> You mean, as the digits? You would have to rewrite the entire long
> datatype, which is a tedious exercise. Plus, I believe you would have
> to make some operations 64-bit on all systems: when you multiply
> digits today, the product will be 32-bit. If you extend the digits,
> you might get 64-bit results, which will be slow on 32-bit systems
> (plus some 32-bit systems don't support a 64-bit integer type at all
> in their compilers).

I pass! :)

It may be worth a try for Python 4.0 when most OS are 64bit.

Christian


More information about the Python-Dev mailing list