[Python-Dev] Python 2.4, VS 2005 & Profile Guided Optmization (original) (raw)

Neil Hodgson nyamatongwe at gmail.com
Mon Jul 24 05:03:22 CEST 2006


Trent Nelson:

I ended up playing around with Profile Guided Optimization, running ``python.exe pystones.py'' to collect call-graph data after python.exe/Python24.dll had been instrumented, then recompiling with the optimizations fed back in.

It'd be an idea to build a larger body of Python code to run the profiling pass on so it doesn't just optimize the sort of code in pystone which is not very representative. Could run the test suite as it would have good coverage but would hit exceptional cases too heavily. Other compilers (Intel?) support profile directed optimization so would also benefit from such a body of code.

Neil



More information about the Python-Dev mailing list