Python and GMP.

bearophileHUGS at bearophileHUGS at
Tue Apr 21 13:04:12 CEST 2009

> Testing 2 digits. This primarily measures the overhead for call GMP
> via an extension module.
> ...

Thank you for adding some actual data to the whole discussion :-)
If you perform similar benchmarks with Bigints of Java you will see
how much slower they are compared to the Python ones.

Mark Dickinson:
>Apart from that, I'm not sure there's much snot left to be optimized out, as they say...<

Using inline ASM in Python sources isn't an option.


More information about the Python-list mailing list