[Python-Dev] Strategy for converting the decimal module to C (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Jul 20 03:30:50 CEST 2006


Nick Maclaren wrote:

When such arithmetic is implemented in hardware, it is normal for exceptional cases to be handled by interrupt, and that is VERY expensive ... It then becomes important to know how many of the things you got, to know whether it is worth putting code in to avoid them or even using a different algorithm.

But couldn't you just put in an interrupt handler that counts the interrupts, for the purpose of measurement?

-- Greg



More information about the Python-Dev mailing list