Skip to content

isinstance is 4x as slow as in 2.5 because the common case raises #46556

@jyasskin

Description

@jyasskin
mannequin
BPO 2303
Nosy @gvanrossum, @theller, @rhettinger, @gpshead
Files
  • isinst.diff: Patch to short circuit an exact match
  • 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 = 'https://github.com/gvanrossum'
    closed_at = <Date 2008-07-13.18:38:06.819>
    created_at = <Date 2008-03-16.15:45:41.157>
    labels = ['interpreter-core', 'performance']
    title = 'isinstance is 4x as slow as in 2.5 because the common case raises'
    updated_at = <Date 2008-07-13.18:38:06.813>
    user = 'https://bugs.python.org/jyasskin'

    bugs.python.org fields:

    activity = <Date 2008-07-13.18:38:06.813>
    actor = 'gregory.p.smith'
    assignee = 'gvanrossum'
    closed = True
    closed_date = <Date 2008-07-13.18:38:06.819>
    closer = 'gregory.p.smith'
    components = ['Interpreter Core']
    creation = <Date 2008-03-16.15:45:41.157>
    creator = 'jyasskin'
    dependencies = []
    files = ['9742']
    hgrepos = []
    issue_num = 2303
    keywords = ['patch']
    message_count = 11.0
    messages = ['63580', '63878', '63935', '63952', '63958', '63986', '63991', '64002', '64844', '69487', '69616']
    nosy_count = 5.0
    nosy_names = ['gvanrossum', 'theller', 'rhettinger', 'gregory.p.smith', 'jyasskin']
    pr_nums = []
    priority = 'critical'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue2303'
    versions = ['Python 2.6']

    Metadata

    Metadata

    Assignees

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usage
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions