Speed Comparison Perl Python & C

Bob Ippolito bob at redivi.com
Wed Mar 3 01:49:23 CET 2004

On 2004-03-02 16:23:02 -0500, Thomas Heller <theller at python.net> said:

>> On 2004-03-02 15:52:55 -0500, "Neil Hodgson" <nhodgson at bigpond.net.au> said:
>>> Python does optimize integers that can be represented in 32 bits but
>>> larger than that and unbounded integers are used. For some
>>> applications, it would be better if Python also optimized integers
>>> that require between 32 and 64 bits.
> Bob Ippolito <bob at redivi.com> writes:
>> Especially on architectures that have 64 bit integer registers, but
>> are running on an operating system/compiler combination that uses 32
>> bits for int and long (such as the PowerPC 970, on OS X).  I would
>> imagine a similar situation exists for other processor/enivronment
>> combinations.
> Instead of making this is responsibility of the Python code, wouldn't
> this better be a job for psyco?

Perhaps psyco and/or Numeric/Numarray, I guess...  I would imagine that 
the people who would need such speed don't care where it is, so long as 
it's available to them.

> BTW, does psyco run on non-x86 architectures?

Yes, barely.. it uses a written-in-C "microVM" that can do some things 
more efficiently than Python's "monsterVM" :)


More information about the Python-list mailing list