sum() several times slower on Python 3 64-bit

未关闭
#68,264 48 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
15/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
python

调研方向

Start by reviewing the referenced pylong_freelist.patch and unpack_single_digits.patch, then inspect pull requests #28469 and #28493. Compare the reported Python 3 64-bit sum() performance with the changes under discussion; done means the slowdown is addressed and the relevant performance behavior is verified.

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

描述

interpreter-core performance type-feature
BPO 24076
Nosy @gvanrossum, @rhettinger, @mdickinson, @scoder, @stevendaprano, @ambv, @serhiy-storchaka, @pablogsal
PRs
  • python/cpython#28469
  • python/cpython#28493
  • Files
  • pylong_freelist.patch
  • unpack_single_digits.patch
  • 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 = <Date 2021-09-21.11:22:53.873>
    created_at = <Date 2015-04-29.18:36:58.330>
    labels = ['interpreter-core', '3.11', 'performance']
    title = 'sum() several times slower on Python 3 64-bit'
    updated_at = <Date 2021-09-22.10:30:16.952>
    user = 'https://github.com/ambv'
    

    bugs.python.org fields:

    activity = <Date 2021-09-22.10:30:16.952>
    actor = 'pablogsal'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-09-21.11:22:53.873>
    closer = 'scoder'
    components = ['Interpreter Core']
    creation = <Date 2015-04-29.18:36:58.330>
    creator = 'lukasz.langa'
    dependencies = []
    files = ['39245', '47748']
    hgrepos = []
    issue_num = 24076
    keywords = ['patch']
    message_count = 35.0
    messages = ['242238', '242241', '242242', '242243', '242244', '242259', '242260', '242262', '242294', '242300', '242302', '242310', '242357', '242914', '323443', '402136', '402201', '402210', '402281', '402282', '402285', '402286', '402295', '402298', '402302', '402306', '402310', '402313', '402315', '402325', '402326', '402328', '402334', '402410', '402421']
    nosy_count = 8.0
    nosy_names = ['gvanrossum', 'rhettinger', 'mark.dickinson', 'scoder', 'steven.daprano', 'lukasz.langa', 'serhiy.storchaka', 'pablogsal']
    pr_nums = ['28469', '28493']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue24076'
    versions = ['Python 3.11']
    

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

    贡献指南

    打开贡献指南

    从这里开始

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

    python/cpython 的其他 Issue

    查看 python/cpython 的全部 Issue

    相似的 Issue

    更多 Python Issue

    把新 issue 发到你的邮箱

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