WHY is python slow?
Courageous
jkraska1 at san.rr.com
Thu Jun 7 17:11:40 EDT 2001
On Thu, 07 Jun 2001 14:52:36 +0700, Steven Haryanto <steven at haryan.to> wrote:
> Python is slower ... a layman like me would be curious to know why
>exactly this is so.
Dispatch overhead, much of it.
>My first guess would be the ubiquitous use of dictionaries?
Not per se, but it's related. IIRC, a typical run of the python interpreter
reveals that dictionaries are a major contributor to CPU time in the
Python runtime, but this is still < 20% (and sometimes quite a bit less).
There are many things going on.
C//
More information about the Python-list
mailing list