[Python-Dev] Memory size overflows (original) (raw)

Tim Peters tim.one@comcast.net
Thu, 17 Oct 2002 18:29:39 -0400


[Gerald S. Williams]

Well, I was done tweaking, but then I decided to try out one more performance tweak. This is in desperate need of commenting, but it's finally faster than checking via division on my machine: ...

If you've actually got the energy to time these things , how about adapting the int-mul overflow checking code in Python's intobject.c's int_mul() function too? The CVS (ditto 2.2.2) version

It could be simplified a little if it were specialized to unsigned mult.