This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Specialize LOAD_METHOD with PEP 659 adaptive interpreter
Type: Stage: resolved
Components: Interpreter Core Versions: Python 3.11
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Mark.Shannon, kj
Priority: normal Keywords: patch

Created on 2021-08-11 12:43 by kj, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 27722 merged kj, 2021-08-11 12:48
Messages (3)
msg399388 - (view) Author: Ken Jin (kj) * (Python committer) Date: 2021-08-11 12:43
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 https://github.com/faster-cpython/ideas/issues/81 for more details.
msg399758 - (view) Author: Mark Shannon (Mark.Shannon) * (Python committer) Date: 2021-08-17 14:56
New changeset 96346cb6d0593ef9ec122614347ccb053cd63433 by Ken Jin in branch 'main':
bpo-44889: Specialize LOAD_METHOD with PEP 659 adaptive interpreter (GH-27722)
https://github.com/python/cpython/commit/96346cb6d0593ef9ec122614347ccb053cd63433
msg399761 - (view) Author: Ken Jin (kj) * (Python committer) Date: 2021-08-17 15:26
Some improvements can be made (see https://github.com/python/cpython/pull/27722#issuecomment-900369714), but for the most part we're done.
History
Date User Action Args
2022-04-11 14:59:48adminsetgithub: 89052
2021-08-17 15:26:06kjsetstatus: open -> closed
resolution: fixed
messages: + msg399761

stage: patch review -> resolved
2021-08-17 14:56:03Mark.Shannonsetnosy: + Mark.Shannon
messages: + msg399758
2021-08-11 12:48:50kjsetkeywords: + patch
stage: patch review
pull_requests: + pull_request26207
2021-08-11 12:43:20kjcreate