Contribute Media
A thank you to everyone who makes this possible: Read More

How we are making Python 3.11 faster

Description

EuroPython 2022 - How we are making Python 3.11 faster - presented by Mark Shannon

[The Auditorium on 2022-07-14]

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.

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License http://creativecommons.org/licenses/by-nc-sa/4.0/

Improve this page