PyOhio 2010: Making it go faster

Description

Making it go faster

Presented by W. Matthew Wilson

An introduction to profiling python code.

I'll use cProfile, pstats, and RunSnakeRun to find where code is getting bogged down in a real-world example. I'll measure the run-time cost with timeit, refactor, and measure it again.

Finally, I'll talk about the limits of python optimization and show how to replace python code with C.