Learn Python with Talk Python's Python courses

Faster Python Programs: Measure, Don't Guess

Episode #66, published Thu, Jul 7, 2016, recorded Mon, Jul 4, 2016.

This episode is carbon neutral.
Python is a wonderful programming language that is often underestimated because it's so clear and simple. Oftentimes people mistake this simplicity for being too simple for real-programs. After all, you didn't even struggle to get your program to link against an incompatible static library or battle a DLL version mismatch in your Python app today did you?

Usually we find this simple and clear programming language to be powerful and fast. But what happens when it's not fast enough? Do you have to stop and rewrite it in C, C#, or Java?

Well before you do something drastic, Mike Mueller is here to teach us the techniques and steps to determine why our Python programs might be slow and give us some tips to make them faster.

Links from the show:

PyCon Talk by Mike: youtube.com/watch?v=JDSGVvMwNM8
SnakeViz Project: jiffyclub.github.io/snakeviz
line_profiler: pypi.io/project/line_profiler
Pympler mem profiler: pypi.io/project/Pympler
memory_profiler: pypi.io/project/memory_profiler
Python Academy (Mike's company): python-academy.com
xonsh: xonsh.org
Article: Amazon found every 100ms of latency cost them 1% in sales:

Stitcher and Talk Python Podcast: A Farewell Letter:
The Course Everyone New to Python Desperately Needs to Take:

Want to go deeper? Check out our courses

Mike Müller
Mike Müller
Mike Müller has been using Python as his primary programming language since 1999. He is a Python trainer and the CEO at Python Academy (www.python-academy.com). He teaches a wide variety of Python topics including "Introduction to Python", "Python for Scientists and Engineers", "Advanced Python" as well as "Optimization and Extensions of Python Programs". He is the chairman of the Python Software Verband e.V., a PSF Fellow, a PSF community service award holder, and a User Group co-founder. He chaired EuroSciPy 2008 and 2009, PyCon DE 2011 and 2012 as well as EuroPython 2014 in Berlin, Germany.
Episode sponsored by
Ads served ethically
Become a friend of the show
Stay in the know and get a chance to win our contests.
See our privacy statement about email communications.