[Python-Dev] Tagged integers (original) (raw)
Michael Hudson mwh at python.net
Thu Jul 15 11:10:07 CEST 2004
- Previous message: [Python-Dev] Tagged integers
- Next message: [Python-Dev] Tagged integers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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...
Cheers, mwh
-- Python enjoys making tradeoffs that drive someone crazy . -- Tim Peters, comp.lang.python
- Previous message: [Python-Dev] Tagged integers
- Next message: [Python-Dev] Tagged integers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]