Explore the latest advancements in Python performance optimization and learn how to write efficient code for modern interpreters in this PyCon US talk. Discover new best practices, understand which old guidelines are no longer relevant, and gain insights into the ongoing efforts to speed up the Python language. Delve into topics such as global variables, attribute lookups, dynamic features, and the comparison between C extensions and Python. Acquire practical knowledge to leverage these optimizations effectively in your own Python projects.
Overview
Syllabus
Introduction
Why Python is slow
New projects
Controversial slide
What makes Python slow
Global Variables
Attributes
Happy case
Avoid this
Attribute lookup
Benchmarks
Dynamic features
C extensions vs Python
Conclusion
Taught by
PyCon US