Guido Van Rossum intends to reach a two-time increase in performance in CPYTHON 3.11

Guido van Rossum, the creator of the Python programming language, in its report at the conference Python Language Summit told about the plans to optimize CPYTHON performance. To version 3.11, which is expected in 2022, the developers hope to achieve an increase in performance twice. The CPYTHON optimization project is engaged in a small team of developers from Microsoft, which recently moved to the work of Guido.

When implementing a project, developers intend to adhere to a number of restrictions, such as maintaining full compatibility at the ABI level and code, as well as the inadmissibility of improving productivity due to slowdown in border cases. Of the components that can be changed to increase productivity, the bytecode, placement of data in memory, compiler and interpreter.

Project Works are published in a separate repository Faster-CPYTHON . One of the project participants, previously engaged in the development of Jit compiler hotpy for CPYthon, Posted Plan , in According to which it considers realistic to raise performance five times and achieve this result in the release of Python 3.13. The project is divided into four stages:

  • in Python 3.10 It is planned to implement optimization in the interpreter associated with the adaptation of the interpretation process to types and values ​​during the execution.
  • In the release of Python 3.11, improvements are expected to make improvements in Runtime and key objects, as well as the inclusion of multiple specialized optimizations, such as accelerating binary operators and work with integer values ​​that fit into one machine word, accelerate the call and return from functions, decreased overhead Costs when working with memory and when processing exceptions.
  • in Python 3.12 A simple JIT compiler will appear, used for a small part of the specialized code.
  • In Python 3.13, new features of the machine code generation will be added during execution and expanded the use of the JIT compiler.
/Media reports.