python / python/cpython

Certain methods that heap allocated subtypes inherit suffer a 50-80% performance penalty

未关闭
#78,577 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

3.12 performance topic-C-API
主要语言
Python
星标
77.2k
派生
36k
平均合并
1 天 9 小时
30 天内合并 PR
558

描述

BPO 34396
Nosy @rhettinger, @scoder, @benjaminp, @methane, @serhiy-storchaka, @jdemeyer, @mr-nfamous, @Marco-Sulla
PRs
  • python/cpython#14863
  • 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 2018-08-13.19:36:41.892>
    labels = ['expert-C-API', '3.9', 'performance']
    title = 'Certain methods that heap allocated subtypes inherit suffer a 50-80% performance penalty'
    updated_at = <Date 2020-02-28.08:02:38.315>
    user = 'https://github.com/mr-nfamous'
    

    bugs.python.org fields:

    activity = <Date 2020-02-28.08:02:38.315>
    actor = 'methane'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['C API']
    creation = <Date 2018-08-13.19:36:41.892>
    creator = 'bup'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 34396
    keywords = ['patch']
    message_count = 8.0
    messages = ['323490', '323498', '328187', '339449', '339453', '339477', '348185', '362715']
    nosy_count = 8.0
    nosy_names = ['rhettinger', 'scoder', 'benjamin.peterson', 'methane', 'serhiy.storchaka', 'jdemeyer', 'bup', 'Marco Sulla']
    pr_nums = ['14863']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue34396'
    versions = ['Python 3.9']
    

    贡献指南

    打开贡献指南

    从这里开始

    1. 先读完整个 Issue,再读项目的贡献指南。
    2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
    3. Fork 仓库,在一个分支上完成修改。
    4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

    调研方向

    从 BPO issue 34396 和其中引用的 PR #14863 开始;payload 没有列出源文件或测试。确定受影响的 heap 分配子类型上的继承方法,并使用 benchmarks 验证报告的性能损失;当回归问题得到解决且性能差异得到验证时,即视为完成。

    由索引模型根据 Issue 内容生成。

    评估

    技术栈
    c, python
    领域
    backend, performance
    Issue 类型
    缺陷
    难度
    5/5
    预计耗时
    一周以上
    活跃度
    停滞
    描述清晰度
    需要澄清
    新手友好度
    25/100

    把新 issue 发到你的邮箱

    精选适合新手参与的 GitHub issue 摘要。