python / python/cpython

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

オープン
#78,577 コメント 8 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

3.12 performance topic-C-API
主要言語
Python
スター
77.2k
フォーク
36k
平均マージ
1日 9時間
マージ済み PR(30日)
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. リポジトリをフォークし、ブランチを切って変更します。
    4. issue 番号を参照したプルリクエストを送ります。

    調査の方向性

    BPO issue 34396 と参照されている PR #14863 から始めてください。payload にはソースファイルもテストも記載されていません。heap に割り当てられたサブタイプで影響を受ける継承メソッドを特定し、報告されたパフォーマンス低下をベンチマークで検証してください。回帰が解消され、パフォーマンスの差が検証できれば完了です。

    索引モデルが issue の本文から書いたものです。

    評価

    技術スタック
    c, python
    領域
    backend, performance
    issue の種類
    バグ
    難易度
    5/5
    見積もり時間
    1週間以上
    活発さ
    停滞
    明瞭さ
    説明が足りない
    初心者へのやさしさ
    25/100

    新しい issue をメールで受け取る

    初心者向けの GitHub issue を短くまとめたダイジェスト。