How we are making Python 3.11 faster (CPython project)

Channel:
Subscribers:
725,000
Published on ● Video Link: https://www.youtube.com/watch?v=MipEJ3XzZjU



Duration: 25:02
6,903 views
193


The "Faster CPython" project aims to speed up Python, specifically CPython, by a large factor over the next few releases.
The first release to see the benefits of this work is Python 3.11.

Python 3.11 includes the following major changes:

* Adaptive specializing interpreter (PEP 659)
* Consecutively allocated execution frames
* Zero cost try-except
* More regular object layout
* Lazily created object dictionaries.

I will describe each of these, describing how each helps speed up Python, and how they interact with each other.

I will end the talk with some possible directions for Python 3.12.

PUBLICATION PERMISSIONS:
Original video was pbulished with the Creative Commons Attribution license (reuse allowed). Link: https://www.youtube.com/watch?v=xKk7IXm0XO0







Tags:
python
cpython