Take some time to transcribe PyCon 2014 talks! Click on the "Share" button below the video and then "Subtitle" to get started.
PyOhio 2010: Making it go faster
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.