python speed

Fredrik Lundh fredrik at
Thu Dec 1 11:13:23 CET 2005

Mike Meyer wrote:

> If you wire everything down, you can always hand-code assembler that
> will be faster than HLL code

but that doesn't mean that your hand-coded assembler will always be faster
than an HLL implementation that addresses the same problem:

    "Pure Python division is 16x slower than GMP but can actually
    be faster in some instances; for example, dividing a 2,000,000
    digit number by an 800,000 digit number"


More information about the Python-list mailing list