Start tracing at `JUMP_BACKWARD_NO_INTERRUPT`
未關閉
還沒有人認領這個 Issue。
interpreter-core
topic-JIT
type-feature
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- PR 合併指標
- PR 指標待擷取
描述
Feature or enhancement
Proposal:
We have just added the ability to start tracing at the beginning of functions.
That still leaves yield from and await loops to be run in the interpreter without jitting.
By starting tracing at JUMP_BACKWARD_NO_INTERRUPT we fill that gap.
Before we can do that, there are two problems we need to fix:
Once those are fixed, this should give us good jit coverage without degrading the quality of the traces.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先閱讀 issue 145047 和 146073,因為此提案取決於這兩個 issue 都已修正。接著檢查 CPython 對 JUMP_BACKWARD_NO_INTERRUPT 的 tracing 和 JIT 處理,包括現有的函式開始時 tracing 行為。當 yield from 和 await 迴圈可以在那裡開始 tracing,且不會降低 trace 品質時,即視為完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- compilers
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100