Tier Two Optimizer Eliminate Function Version Guards
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 35.9k
- PR マージ指標
- PR 指標を取得中
説明
Feature or enhancement
Proposal:
Suggested by @brandtbucher at the PyCon sprints
The tier two interpreter currently adds additional function function guards when it doesn't need to. We can use the function watcher to track when the function version changes and only add the first one.
Similar to the issue for type version guards https://github.com/python/cpython/issues/119258 and the implemented solution https://github.com/python/cpython/pull/119365
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
- gh-119491
- gh-119510
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
関連する type-version-guard issue 119258、その実装済み PR 119365、およびリンクされた PR 119491 と 119510 の確認から始めてください。意図する結果は、tier two interpreter が function watcher を使用し、冗長な guard ではなく最初の function version guard だけを追加することです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- compilers, performance
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100