Reduce overhead of pushing and popping frames in Python-to-Python calls.
未關閉
還沒有人認領這個 Issue。
3.12
interpreter-core
performance
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- PR 合併指標
- PR 指標待擷取
描述
The cost of pushing a frame for Python-to-Python calls is much lower than it used to be, but still considerably higher than it could be.
Pushing a frame should be little more than a space check and a pointer bump. Similarly popping the frame, should just be a pointer adjustment.
We want to be able to add "shim" and proxy frames for performance and debugging. To be able to do that, the cost of frame popping and pushing should be as low as possible.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
未指定任何檔案、測試或具體入口點。首先定位 Python-to-Python 呼叫的 frame push 和 pop 實作,然後建立目前額外負荷的測量;完成的標準是,在保留對 shim frame 和 proxy frame 支援的同時,將這些操作朝著所述的 space-check、pointer-bump 和指標調整目標進行縮減。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- performance
- Issue 類型
- 重構
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100