Get 20% off all career paths from fullstack to AI
Master Production-Ready Machine Learning, Step by Step
Overview
Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This talk shows how to use profiling to measure application performance and identify regressions, then refactors common Python patterns to improve speed while preserving readability.
Syllabus
Intro
James Murphy talk
How to improve performance
Before you start
Profilers
Sampling profilers
My favourite profilers
Antipatterns
linter
Looping variants
List comprehension
Wrong types
Example
Reading the results
tuple iterator
unmutated collection
calling too many functions
a and b example
Utility library
Wrap up
Outro
Taught by
PyCon US