Python is slow

inhahe inhahe at gmail.com
Fri May 23 15:44:03 EDT 2008


"Paul Rubin" <http://phr.cx@NOSPAM.invalid> wrote in message 
news:7xk5hll2hz.fsf at ruckus.brouhaha.com...
> "inhahe" <inhahe at gmail.com> writes:
>> planets are spherical (all implementations of Python are not natively
>> compiled (and you said for whatever definition)), and b) It's a far cry 
>> to
>> imagine a planet coming into being that's not spherical (a language as
>> dynamic as Python, or most other scripting languages, would be either
>> extremely difficult or impossible to make a native compiler for).
>
> There are native Python compilers, see psyco and pypy.

That does complicate the question since there are 4 levels of executing code

interpreted
bytecode-compiled-interpreted
jit-complied
natively compiled

i've tried psyco a few times and never noticed much of a speed increase.  if 
any.
and then on the other hand, .net is supposed to be almost as fast as C 
because of its JIT. but the whole issue of the speed of .net seems to be 
enshrouded in mystery, so who knows.






More information about the Python-list mailing list