[issue44889] Specialize LOAD_METHOD with PEP 659 adaptive interpreter

2021-08-17 Thread Ken Jin
Ken Jin added the comment: Some improvements can be made (see https://github.com/python/cpython/pull/27722#issuecomment-900369714), but for the most part we're done. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed _

[issue44889] Specialize LOAD_METHOD with PEP 659 adaptive interpreter

2021-08-17 Thread Mark Shannon
Mark Shannon added the comment: 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 -- nos

[issue44889] Specialize LOAD_METHOD with PEP 659 adaptive interpreter

2021-08-11 Thread Ken Jin
Change by Ken Jin : -- keywords: +patch pull_requests: +26207 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27722 ___ Python tracker ___

[issue44889] Specialize LOAD_METHOD with PEP 659 adaptive interpreter

2021-08-11 Thread Ken Jin
New submission from Ken Jin : 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 se