The way to a faster python [was Python IS slow !]
Markus Kohler
markus_kohler at hp.com
Tue May 4 08:51:16 EDT 1999
Fredrik Lundh wrote:
>
> Markus Kohler wrote:
> > 1. One can use a dispatch table instead of a case statement by using
> > an extension of gnu C. For squeak (www.squeak.org) that gave me a speedup
> > of almost a factor of 2 in message sending speed on a HP-UX machine.
> > The statement used is a goto(address). Some other C compilers might be
> > able to do that as well, and for those you don't have it the old code
> > should still be there.
>
> http://starship.skyport.net/crew/vlad/archive/threaded_code/
>
I know.
But it's not in the main release yet. Didn't it improve
performance ?
Also when I read USE_INDIRECT_THREADED_CODE it seems to me it uses
indirect threading.
Direct threaded code
could be still faster on most machines. Of course the implementation
effort is probably
bigger.
Markus
--
Markus Kohler mailto:markus_kohler at hp.com
More information about the Python-list
mailing list