Python IS slow ! [was] Re: Python too slow for real world
Terry Reedy
tjreedy at udel.edu
Thu Apr 29 10:35:04 EDT 1999
In article <slrn7ieipq.8uk.wtanksle at dolphin.openprojects.net>,
wtanksle at dolphin.openprojects.net says...
>The reason it's slow is its runtime model. _Every_ function call requires
>a lookup in a hash table, just on the off-chance that the programmer
>changed the meaning of the function.
A batch-mode optimizer analyzing an entire file (module) should be able to
detect whether or not function names are rebound.
Perhaps module bindings should be considered immutable from outside the
module unless explicitly declared otherwise. (This would of course require a
new keyword and would break the rare existing code that does this until the
new directive was added.)
TJR
More information about the Python-list
mailing list