How the “Shannon Plan” Aims to Double Python’s Speed in 3.11
Guido van Rossum revealed that the new “Shannon Plan” backed by Microsoft will target a 2× speed boost for CPython 3.11 through a specialized bytecode interpreter, stack optimizations, and other enhancements, while preserving ABI compatibility and open‑source principles.
Guido van Rossum, the creator of Python, announced at the 2021 Python Language Summit that the short‑term goal is to achieve at least a 2× speed increase in Python 3.11. According to the official release schedule, Python 3.10 is in testing and slated for release in October, while Python 3.11 is expected in 2022.
In November 2020, after a year of retirement, Guido returned to join Microsoft’s Developer Division, where Microsoft funded a small Python team that includes core developers, senior software engineer Eric Snow, and research engineer Mark Shannon.
The project, called the “Shannon Plan,” aims to make CPython faster, targeting a five‑fold speedup over four years (about 1.5× per year). A GitHub repository has been created containing a CPython branch, benchmarking tools, and an issue tracker.
Guido emphasized that all work will remain open source and pledged not to break stable ABI compatibility, limited API compatibility, extreme‑case behavior, or code maintainability.
To achieve at least a 2× speedup in Python 3.11, the plan includes a specialized adaptive bytecode interpreter (see PEP 659), stack‑frame optimizations, changes to function call mechanics, more efficient exception handling, startup‑time optimizations, and a revised .pyc bytecode cache format.
The primary beneficiaries will be users running CPU‑intensive pure‑Python code and websites that embed Python. Code already written in C (e.g., NumPy, TensorFlow), I/O‑bound code, multithreaded code, and poorly optimized algorithms will see limited gains.
For more details, see the PDF at https://github.com/faster-cpython/ideas/blob/main/FasterCPythonDark.pdf .
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
MaGe Linux Operations
Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
