Skip to content

Specialize LOAD_METHOD with PEP 659 adaptive interpreter #89052

Closed

Description

@Fidget-Spinner
BPO 44889
Nosy @markshannon, @Fidget-Spinner
PRs
  • bpo-44889: Specialize LOAD_METHOD with PEP 659 adaptive interpreter #27722
  • 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-08-17.15:26:06.425>
    created_at = <Date 2021-08-11.12:43:20.700>
    labels = ['interpreter-core', '3.11']
    title = 'Specialize LOAD_METHOD with PEP 659 adaptive interpreter'
    updated_at = <Date 2021-08-17.15:26:06.425>
    user = 'https://github.com/Fidget-Spinner'

    bugs.python.org fields:

    activity = <Date 2021-08-17.15:26:06.425>
    actor = 'kj'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-08-17.15:26:06.425>
    closer = 'kj'
    components = ['Interpreter Core']
    creation = <Date 2021-08-11.12:43:20.700>
    creator = 'kj'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 44889
    keywords = ['patch']
    message_count = 3.0
    messages = ['399388', '399758', '399761']
    nosy_count = 2.0
    nosy_names = ['Mark.Shannon', 'kj']
    pr_nums = ['27722']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue44889'
    versions = ['Python 3.11']

    Activity

    1. Fidget-Spinner commented on Aug 11, 2021

      @Fidget-Spinner
      MemberAuthor

      Possible specializations:

      • LOAD_METHOD_CACHED
        Cache the method. We only need to check that type(o) and o.__dict__ was not modified.

      • LOAD_METHOD_CLASS
        For classmethods. Less speedup expected.

      • LOAD_METHOD_MODULE
        For module methods. Uncommon (<10%).

      Please see faster-cpython/ideas#81 for more details.

    2. markshannon commented on Aug 17, 2021

      @markshannon
      Member

      New changeset 96346cb by Ken Jin in branch 'main':
      bpo-44889: Specialize LOAD_METHOD with PEP-659 adaptive interpreter (GH-27722)
      96346cb

    3. Fidget-Spinner commented on Aug 17, 2021

      @Fidget-Spinner
      MemberAuthor

      Some improvements can be made (see #27722 (comment)), but for the most part we're done.

    4. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.11only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions