YoVDO

How We Are Making CPython Faster - Past, Present, and Future

Offered By: PyCon US via YouTube

Tags

PyCon US Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the past, present, and future of CPython performance optimization in this 29-minute PyCon US talk by Mark Shannon. Discover the strategies behind Python 3.11's significant speed improvements and learn about upcoming enhancements for future releases. Gain insights into the high-level approach for accelerating CPython, explained through simple diagrams, examples, and basic math concepts. Understand key optimization techniques, including region formation, specialization, and partial evaluation. Examine where execution time is spent and how various aspects of the runtime are considered to achieve substantial speedups. Get a glimpse into potential performance gains for upcoming Python versions and the language's overall speed potential.

Syllabus

Intro
Time vs Speed
Achieving 5x speedup Equivalent to a 80% reduction in execution time
Need to consider all aspects of the runtime
Where is the time spent?
General Principles
Example class and instance
The early days
Python object
Interlude: Bytecode
The past
The future
Region formation
Specialization
Partial Evaluation
Optimization techniques
Conclusions


Taught by

PyCon US

Related Courses

Intro to Python for Brand New Programmers
PyCon US via YouTube
Comprehending Comprehensions
PyCon US via YouTube
Data Analysis with SQLite and Python
PyCon US via YouTube
Build a Production Ready GraphQL API Using Python
PyCon US via YouTube
Web Development With A Python-backed Frontend - Featuring HTMX and Tailwind
PyCon US via YouTube