E tutto questo senza utilizzare il compilatore specializzato psyco: http://psyco.sourceforge.net (Python 2.3 + psyco 1.0): > python ~/python2.3/moduli_aggiuntivi/psyco-1.0/test/pystone.py Pystone(1.1) time loops per second regular Python for 20000 passes 0.98 20408.2 Psyco for 10000 passes 0.09 111111 Psyco for 10000 more passes 0.09 111111 Total for 20000 passes 0.18 111111 ... Il fattore di aumento di velocita' e' di circa 5/6 volte, analogo a quello di Python2.2. Ciao ciao Emanuele On Mon, Aug 11, 2003 at 12:40:02PM +0200, Lele Gaifax wrote: > $ python2.1 /usr/lib/python2.1/test/pystone.pyo > Pystone(1.1) time for 10000 passes = 1.11 > This machine benchmarks at 9009.01 pystones/second > run_pyc_file: nested_scopes: 0 > > $ python2.2 /usr/lib/python2.2/test/pystone.pyo > Pystone(1.1) time for 10000 passes = 1.06 > This machine benchmarks at 9433.96 pystones/second > > $ python2.3 /usr/lib/python2.3/test/pystone.pyo > Pystone(1.1) time for 50000 passes = 4.25 > This machine benchmarks at 11764.7 pystones/second > > $ python > Python 2.3+ (#2, Aug 10 2003, 11:33:47) > [GCC 3.3.1 (Debian)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> 11764.7-9433.96 > 2330.7400000000016 > >>> _/9433.96 > 0.24705849929404003 > >>> _*100 > 24.705849929404003 > >>> -- Per iscriversi (o disiscriversi), basta spedire un messaggio con OGGETTO "subscribe" (o "unsubscribe") a mailto:linuxtrent-request@xxxxxxxxxxxxx