How CPython 3.11 is Speeding Up

20/01/2023, 3pm

Speaker

Ken Jin

Abstract

CPython is the reference implementation of the Python programming language, and is also commonly regarded as the most widely used Python implementation. In 2021, Python's creator Guido van Rossum announced that Microsoft would fund a team to work on speeding up CPython, with a goal of a 5x speedup in 4 years. CPython 3.11 is the first release under this effort, and it has already achieved a speedup of 10-60% over CPython 3.10 on the pyperformance benchmark suite. In this talk, I'll go into the details of how CPython 3.11 achieved these speedups. The main optimizations I'll cover are call optimizations, optimized data structures, and PEP 659 -- Specializing Adaptive Interpreter.

Bio

Ken Jin is a core developer of the Python programming language, and a maintainer of CPython - the reference implementation of Python. He primarily works on performance optimizations, runtime typing of Python, and documentation. He has co-authored various improvements to Python's typing module in Python 3.10, and also co-authored method inline caching and specialization in Python 3.11.