Skip to content

Speed up _PyType_Lookup() for class creation #75517

@scoder

Description

@scoder
BPO 31336
Nosy @rhettinger, @pitrou, @scoder, @vstinner, @tiran, @methane, @serhiy-storchaka
PRs
  • bpo-31336: Speed up type creation, which is highly dominated by slow dict lookups. #3279
  • 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/vstinner'
    closed_at = <Date 2017-10-01.08:41:49.922>
    created_at = <Date 2017-09-04.11:39:18.162>
    labels = ['interpreter-core', '3.7', 'performance']
    title = 'Speed up _PyType_Lookup() for class creation'
    updated_at = <Date 2017-10-01.08:43:26.464>
    user = 'https://github.com/scoder'

    bugs.python.org fields:

    activity = <Date 2017-10-01.08:43:26.464>
    actor = 'scoder'
    assignee = 'vstinner'
    closed = True
    closed_date = <Date 2017-10-01.08:41:49.922>
    closer = 'serhiy.storchaka'
    components = ['Interpreter Core']
    creation = <Date 2017-09-04.11:39:18.162>
    creator = 'scoder'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 31336
    keywords = []
    message_count = 31.0
    messages = ['301213', '301214', '301215', '301216', '301220', '301221', '301227', '301232', '301240', '301300', '301347', '301350', '301364', '301446', '301452', '301823', '301824', '301825', '301827', '301830', '301878', '301887', '302052', '302104', '302108', '302157', '303010', '303011', '303453', '303454', '303455']
    nosy_count = 7.0
    nosy_names = ['rhettinger', 'pitrou', 'scoder', 'vstinner', 'christian.heimes', 'methane', 'serhiy.storchaka']
    pr_nums = ['3279']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue31336'
    versions = ['Python 3.7']

    Metadata

    Metadata

    Assignees

    Labels

    3.7 (EOL)end of lifeinterpreter-core(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions