why is python slow on Solaris?

Mattias Engdegård f91-men at nada.kth.se
Mon Aug 6 06:43:51 EDT 2001


Tony McDonald <tony.mcdonald at ncl.ac.uk> writes:

>gcc -fPIC -g -O2 -Wall -Wstrict-prototypes

Try -mcpu=ultrasparc. gcc generates sparc V7 code by default (no integer
mul/div instructions, so call to library routines are divided)

Also try Forte / WorkShop (Sun's own compiler). It usually generates
better code, sometimes by a substantial amount (although I would guess that
the difference for Python isn't that big)

(of course sparcs cannot really compete with modern x86 cpus on performance
nowadays, unfortunately)




More information about the Python-list mailing list