Forth like interpreter

Fredrik Lundh effbot at telia.com
Mon Mar 13 18:28:39 EST 2000


Samuel A. Falvo II wrote:
> >It may count for Forth, but for Python this is very fast.
>
> For any language that uses threaded interpretation in this manner, this
type
> of overhead *ALWAYS* counts.

umm.  do you seriously think that the best way to
speed things up is to go find something that takes
less than one percent of the execution time, and
work very hard on making that little part run a few
percent faster?

> What I'd like to know, though, is what kind of performance boost would one
> (theoretically) get if Python switched from its current switch-threading
to
> token, direct threading?

very close to zero, on most modern platforms.

</F>





More information about the Python-list mailing list