Optimise the way tracemalloc and PyRefTracer hooks work
未關閉
還沒有人認領這個 Issue。
interpreter-core
performance
type-feature
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- PR 合併指標
- PR 指標待擷取
描述
In https://github.com/python/cpython/issues/125703 @markshannon has raised that he is unhappy about the performance implications of where these hooks are placed and in a call we discussed that he has some ideas on how to make them more performant by moving them elsewhere or adapting then.
I am opening this issue to track and sync about these improvements for 3.14 and beyond.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
沒有指定檔案或測試。首先閱讀 issue 125703 以及關於 tracemalloc 和 PyRefTracer hook 放置位置的相關討論,然後檢查相關的 CPython 執行階段程式碼和效能測量結果。這裡沒有定義完成的標準;在開始實作之前,該 issue 需要一個達成共識的方法和一個可測量的 3.14 效能目標。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- performance
- Issue 類型
- 重構
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100