team23
21-05-2009 05:21:06
This is a bit OT to Python-Ogre specifically, but figured this discussion would be beneficial to essentially the same audience.
So given anyone doing 3d rendering is probably also looking to improve perf. I'm attempting to gather intelligence on how to properly use psyco to improve the speed of my project. I've got a number of speed test scripts to see how to do stuff quickly in python. I'm having a mixed bag. One of my more simple algorithmic pieces of code got a 100x speed up, and also shifted the fastest performing method fairly dramatically (The fastest by 400% became the slowest by about 10%). No classes to speak of here, just funcs testing various techniques to accomplishing tasks.
On some of my game code I'm having the opposite effect, pysco slowed down the unit tests for one of my modules by about 5x. Essentially its creating a bunch of objects/class instances, testing a few of their functions out. The issue appears to be code that runs fewer times takes longer with pysco, even if I don't count the psyco calls.
Anyone else have experience with it, or find some holy grail of psyco knoweldge?
So given anyone doing 3d rendering is probably also looking to improve perf. I'm attempting to gather intelligence on how to properly use psyco to improve the speed of my project. I've got a number of speed test scripts to see how to do stuff quickly in python. I'm having a mixed bag. One of my more simple algorithmic pieces of code got a 100x speed up, and also shifted the fastest performing method fairly dramatically (The fastest by 400% became the slowest by about 10%). No classes to speak of here, just funcs testing various techniques to accomplishing tasks.
On some of my game code I'm having the opposite effect, pysco slowed down the unit tests for one of my modules by about 5x. Essentially its creating a bunch of objects/class instances, testing a few of their functions out. The issue appears to be code that runs fewer times takes longer with pysco, even if I don't count the psyco calls.
Anyone else have experience with it, or find some holy grail of psyco knoweldge?