Where's Psyco now?
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Fri Jan 9 16:02:57 EST 2009
On Fri, 09 Jan 2009 12:37:38 -0800, Roger wrote:
> If that's the case where's the point of diminishing returns on using
> psyco? Why would it not be useful in a general setting?
There is some overhead involved with the runtime analysis and compiling.
Functions that are only called once usually don't benefit from psyco,
even worse they can be slower because of the unnecessary overhead. And
not all code can be accelerated. Best candidates are functions that are
somewhat C-like, i.e. doing lots of operations on simple number types.
Things that can be translated directly to machine code. And for some
very generic functions that are called with lots of different types, the
memory consumption is high because of all the specialized code that will
be compiled.
Ciao,
Marc 'BlackJack' Rintsch
More information about the Python-list
mailing list