JIT Planning for 3.15 and 3.16
オープン
@diegorusso がすでに取り組んでいます。
2026年1月12日 から。
interpreter-core
topic-JIT
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 35.9k
- PR マージ指標
- PR 指標を取得中
説明
Following a conversation at the CPython Core Dev Sprint, this is an uber issue tracking JIT performance goals and planning for 3.15 and 3.16.
The goal here is to capture our goals and the work that we believe is necessary to enable the JIT (on by default).
3.15 (May 2026)
Goals & "features"
Must Haves
- 5% faster (geometric mean)
- Best case: 50% faster
- Worst case: -10% faster
- JIT coverage (i.e., how much code is being JIT'ted): 80% https://github.com/python/cpython/issues/142982
- Free-threading supported (pre-beta) https://github.com/python/cpython/issues/133171 https://github.com/python/cpython/pull/141595
- Support for out-of-process profilers and debuggers https://github.com/python/cpython/issues/126910
Nice to haves
- 10% faster (geometric mean)
- Best case: 100% faster
- Worst case 1% slower
- JIT coverage (i.e., how much code is being JIT'ted): 90%
- Robust documentation
How will we do this?
- Register allocation https://github.com/python/cpython/pull/135465
- More optimizations https://github.com/python/cpython/issues/131798 https://github.com/python/cpython/issues/134584
- Trace recording https://github.com/python/cpython/issues/139109
- Code gen
- LLVM 21 #140479
- Warm up faster
- More specialization https://github.com/python/cpython/issues/143732
3.16
Goals & "features"
Must Haves
- ~ similar debuggability and performance across Tier 1 platforms
- 2+ maintainers in front-end, middle-end, and back-end
- ...Anything listed in 3.15 nice to have that was not achieved (e.g. docs, better coverage, faster)
How will we do this?
- Unboxing (int/float/other types)
- LLVM 22
Linked PRs
- gh-142845
- gh-143479
- gh-143705
- gh-146013
- gh-148018
- gh-148359
- gh-148572
- gh-149210
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。