python / python/cpython

urllib2 works slowly with proxy on windows

未關閉
#73,719 23 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

3.10 3.11 3.12 OS-windows performance stdlib
主要語言
Python
星號
77.2k
分支
36k
PR 合併指標
PR 指標待擷取

描述

BPO 29533
Nosy @pfmoore, @orsenthil, @tjguk, @schlamar, @zware, @eryksun, @zooba, @juliadolgova
PRs
  • python/cpython#247
  • Files
  • checklib.py: just make a call to urllib2.urlopen("https://docs.python.org")
  • socket.py: not a patched lib. Has debug lines near 141 line. Use it with checklib.py.
  • test.py: compares performance of gethostbyaddr with gethostbyname_ex
  • log.txt: result of test.py on my computer (Windows 8, 64 bit)
  • socket.patch: not actual (wrong) patch
  • compare_ie_urllib.txt
  • request.patch
  • checklib-py3.py: make a request to http://python.org/ via proxy using urllib
  • compare_urllib_progs.png
  • 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 2017-02-11.08:43:27.110>
    labels = ['3.8', '3.9', '3.10', 'performance', 'library', 'OS-windows']
    title = 'urllib2 works slowly with proxy on windows'
    updated_at = <Date 2021-03-05.13:23:25.513>
    user = 'https://github.com/juliadolgova'
    

    bugs.python.org fields:

    activity = <Date 2021-03-05.13:23:25.513>
    actor = 'eryksun'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)', 'Windows']
    creation = <Date 2017-02-11.08:43:27.110>
    creator = 'juliadolgova'
    dependencies = []
    files = ['46628', '46629', '46630', '46631', '46632', '46649', '46661', '46766', '46813']
    hgrepos = []
    issue_num = 29533
    keywords = ['patch']
    message_count = 23.0
    messages = ['287597', '287905', '287944', '287945', '287976', '288071', '288118', '288139', '288172', '288179', '288413', '290482', '290807', '290833', '290841', '290884', '291222', '291223', '291823', '291884', '291953', '291964', '291972']
    nosy_count = 8.0
    nosy_names = ['paul.moore', 'orsenthil', 'tim.golden', 'schlamar', 'zach.ware', 'eryksun', 'steve.dower', 'juliadolgova']
    pr_nums = ['247']
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue29533'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']
    

    貢獻指南

    開啟貢獻指南

    從這裡開始

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

    研究方向

    首先使用 checklib-py3.py 重現 Windows 代理請求,並將其耗時與 test.py 和隨附的效能結果進行比較。閱讀 request.patch 和 socket.py 的註記,然後查看 PR #247 了解先前的工作。完成時應包括針對所回報的 urllib 代理效能下降問題的已達成共識的修正方案以及效能驗證,但該 issue 未定義精確的驗收測試。

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

    評估

    技術堆疊
    python
    領域
    networking
    Issue 類型
    缺陷
    難度
    4/5
    預估耗時
    3-5 天
    活躍度
    停滯
    描述清晰度
    需要釐清
    新手友好度
    25/100

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

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