Skip to content

PyType_IsSubtype is doing excessive work in the common case #89860

@itamaro

Description

@itamaro
mannequin
BPO 45697
Nosy @serhiy-storchaka, @sweeneyde, @Fidget-Spinner, @itamaro, @arhadthedev
PRs
  • bpo-45697: PyType_IsSubtype: Return early for identical type objects #29380
  • bpo-45697: Use PyObject_TypeCheck in type_call and binary_op1 #29392
  • 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-11-04.10:41:48.112>
    created_at = <Date 2021-11-03.01:12:41.206>
    labels = ['interpreter-core', '3.11', 'performance']
    title = 'PyType_IsSubtype is doing excessive work in the common case'
    updated_at = <Date 2021-11-04.10:41:48.111>
    user = 'https://github.com/itamaro'

    bugs.python.org fields:

    activity = <Date 2021-11-04.10:41:48.111>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-11-04.10:41:48.112>
    closer = 'serhiy.storchaka'
    components = ['Interpreter Core']
    creation = <Date 2021-11-03.01:12:41.206>
    creator = 'itamaro'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 45697
    keywords = ['patch']
    message_count = 11.0
    messages = ['405575', '405577', '405581', '405586', '405589', '405596', '405633', '405642', '405654', '405674', '405675']
    nosy_count = 5.0
    nosy_names = ['serhiy.storchaka', 'Dennis Sweeney', 'kj', 'itamaro', 'arhadthedev']
    pr_nums = ['29380', '29392']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue45697'
    versions = ['Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.11only security fixesinterpreter-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