Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore Python and PyPy performance optimization in this comprehensive 57-minute EuroPython Conference talk. Gain insights into Python program compilation and execution, with a focus on PyPy's just-in-time compilation. Learn about the range of performance improvements achievable with PyPy, from slight enhancements over CPython to C-like speeds. Discover how to write and optimize code for PyPy, understand JIT compiler heuristics, and utilize performance analysis tools. Delve into topics such as premature optimization, specialization, tradeoffs, and PyPy-friendly coding practices. Examine compatibility layers, Windows support, garbage collection, and PyPy extensions. Acquire the knowledge to make informed decisions about replacing CPython with PyPy and optimizing Python code for maximum performance.
Syllabus
Intro
Premature optimization
What is performance like
Python performance
PiePy performance
Profiler
Optimization
Current releases
Speed
How it works
Specialization
Tradeoff
Friendly to PyPy
General advice
Compatibility layer
Optimize code
Windows support
FreeBusy
Can I just replace Python with PyPy
Garbage collector
PyPy extension
Time spent in PyPy
Time spent in user code
Python overhead
Taught by
EuroPython Conference