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.

Title: Further speed up Python-to-Python calls.
Type: performance Stage: patch review
Components: Interpreter Core Versions: Python 3.11
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Mark.Shannon Nosy List: Mark.Shannon, brandtbucher
Priority: normal Keywords: patch

Created on 2021-11-08 17:17 by Mark.Shannon, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 29516 closed Mark.Shannon, 2021-11-10 13:05
PR 29524 merged Mark.Shannon, 2021-11-11 17:06
PR 29575 merged Mark.Shannon, 2021-11-16 11:37
Messages (3)
msg405970 - (view) Author: Mark Shannon (Mark.Shannon) * (Python committer) Date: 2021-11-08 17:17
There are three things we want to do:

1. Speed up pushing and popping frames. See for details.
2. Avoid tracing and other admin overhead on entering and leaving. See
3. Keep the remaining recursion depth in the cframe, to reduce the work for a recursion check from
`++tstate->recursion_depth > tstate->interp->ceval.recursion_limit`
`cframe.recursion_overhead-- > 0`
msg406397 - (view) Author: Mark Shannon (Mark.Shannon) * (Python committer) Date: 2021-11-16 11:02
New changeset b9310773756f40f77e075f221a90dd41e6964efc by Mark Shannon in branch 'main':
bpo-45753: Make recursion checks more efficient. (GH-29524)
msg407445 - (view) Author: Mark Shannon (Mark.Shannon) * (Python committer) Date: 2021-12-01 12:09
New changeset 49444fb807ecb396462c8e5f547eeb5c6bc5d4de by Mark Shannon in branch 'main':
bpo-45753: Interpreter internal tweaks (GH-29575)
Date User Action Args
2022-04-11 14:59:52adminsetgithub: 89914
2021-12-01 12:09:41Mark.Shannonsetmessages: + msg407445
2021-11-16 11:37:56Mark.Shannonsetpull_requests: + pull_request27819
2021-11-16 11:02:05Mark.Shannonsetmessages: + msg406397
2021-11-11 18:02:28brandtbuchersetnosy: + brandtbucher
2021-11-11 17:06:52Mark.Shannonsetpull_requests: + pull_request27774
2021-11-10 13:05:42Mark.Shannonsetkeywords: + patch
stage: patch review
pull_requests: + pull_request27768
2021-11-08 17:17:55Mark.Shannoncreate