python / python/cpython

Avoid releasing the GIL in nonblocking socket operations

未關閉
#89,977 4 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

3.12 performance topic-socket
主要語言
Python
星號
77.2k
分支
36k
PR 合併指標
PR 指標待擷取

描述

BPO 45819
Nosy @rhettinger, @tiran, @asvetlov, @1st1, @jakirkham, @jcrist
PRs
  • python/cpython#29579
  • Files
  • bench.py
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2021-11-16.18:51:40.323>
    labels = ['3.11', 'expert-asyncio', 'expert-IO', 'performance']
    title = 'Avoid releasing the GIL in nonblocking socket operations'
    updated_at = <Date 2022-02-02.23:18:52.305>
    user = 'https://github.com/jcrist'
    

    bugs.python.org fields:

    activity = <Date 2022-02-02.23:18:52.305>
    actor = 'jakirkham'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['IO', 'asyncio']
    creation = <Date 2021-11-16.18:51:40.323>
    creator = 'jcristharif'
    dependencies = []
    files = ['50443']
    hgrepos = []
    issue_num = 45819
    keywords = ['patch']
    message_count = 3.0
    messages = ['406422', '406431', '406436']
    nosy_count = 6.0
    nosy_names = ['rhettinger', 'christian.heimes', 'asvetlov', 'yselivanov', 'jakirkham', 'jcristharif']
    pr_nums = ['29579']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue45819'
    versions = ['Python 3.11']
    

    貢獻指南

    開啟貢獻指南

    從這裡開始

    1. 先讀完整個 Issue,再讀專案的貢獻指南。
    2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
    3. Fork 儲存庫,在一個分支上完成修改。
    4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

    研究方向

    先閱讀 bench.py 和連結的 PR python/cpython#29579,然後追蹤基準測試涵蓋的非阻塞 socket 操作。對這些操作要求的 GIL 釋放行為已完成變更,且基準測試仍能呈現預期的效能行為,即表示完成。

    由索引模型根據 Issue 內容生成。

    評估

    技術堆疊
    python
    領域
    backend
    Issue 類型
    重構
    難度
    4/5
    預估耗時
    3-5 天
    活躍度
    停滯
    描述清晰度
    基本清楚
    新手友好度
    20/100

    把新 issue 寄到你的電子郵件信箱

    精選適合新手參與的 GitHub issue 摘要。