classification
Title: Further speed up Python-to-Python calls.
Type: performance Stage: patch review
Components: Interpreter Core Versions: Python 3.11
process
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 2021-11-11 18:02 by brandtbucher.

Pull Requests
URL Status Linked Edit
PR 29516 open Mark.Shannon, 2021-11-10 13:05
PR 29524 open Mark.Shannon, 2021-11-11 17:06
Messages (1)
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 https://github.com/faster-cpython/ideas/issues/111 for details.
2. Avoid tracing and other admin overhead on entering and leaving. See https://github.com/faster-cpython/ideas/issues/112.
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`
to
`cframe.recursion_overhead-- > 0`
History
Date User Action Args
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