[Python-Dev] Tagged integers

Michael Hudson mwh at python.net
Thu Jul 15 11:10:07 CEST 2004

Greg Ewing <greg at cosc.canterbury.ac.nz> writes:

> James Y Knight <foom at fuhm.net>:
>> On the test that probably puts my change in the most positive light 
>> possible: "x = 0;  while x < 50000000:  x = x + 1", it achieves about a 
>> 50% increase in speed. More normal integer-heavy things seem to be at 
>> most 20% faster.
> And you have to ask yourself -- how integer-heavy does
> typical Python code get?
> Most Python code I write deals with higher-level things
> most of the time -- strings, lists, dicts, class instances.

It's kinda hard to work seriously with lists and strings without
integers :-) This was, at the very least, a worthwhile experiment...


  Python enjoys making tradeoffs that drive *someone* crazy <wink>.
                                       -- Tim Peters, comp.lang.python

More information about the Python-Dev mailing list