python / python/cpython

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

Open
#78,577 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

3.12 performance topic-C-API
Dominant language
Python
Stars
77.2k
Forks
36k
Avg merge
1d 9h
Merged PRs (30d)
558

Description

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']
    

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    Research direction

    Start with BPO issue 34396 and the referenced PR #14863; the payload names no source files or tests. Determine which inherited methods on heap-allocated subtypes are affected and validate the reported performance penalty with benchmarks; done means the regression is addressed and the performance difference is verified.

    Written by the indexing model from the issue text.

    Assessment

    Tech stack
    c, python
    Domain
    backend, performance
    Issue type
    Bug
    Difficulty
    5/5
    Estimated time
    Over a week
    Activity status
    Stale
    Clarity
    Needs clarification
    Newbie friendliness
    25/100

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.