Brought to you by Rollbar - Put errors in their place with pip install rollbar

Episode #66: Faster Python Programs: Measure, Don't Guess

Published Thurs, Jul 7, 2016, recorded Mon, Jul 4, 2016.


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:
highscalability.com/latency-everywhere-and-it-costs-you-sales-how-crush-it

Stitcher and Talk Python Podcast: A Farewell Letter:
blog.michaelckennedy.net
The Course Everyone New to Python Desperately Needs to Take:
datadependence.com/2016/07/write-pythonic-code-like-a-seasoned-developer



Want to go deeper? Check out my 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.


Individuals: Support this podcast via Patreon or one-time via Square Cash or . Corporate sponsorship opportunities available here.