[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] PyGame slowdown



> import psyco
> psyco.full()

One should use psyco a little more sparingly. Use psyco.bind or
psyco.proxy to selectively psycoize certain functions. Test after each
change, and make sure you read the psyco docs, so that you know what
will work best for your situation, and what operations psyco will not
optimise.

I use psyco on some inner looping functions in my modules, and gain a
100-200% performance boost. If I use psyco.full(), things actually
slow down.

Sw.