The Limit of 32 Pending Calls is Too Few #110693
Labels
3.13
new features, bugs and security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
topic-subinterpreters
type-feature
A feature request or enhancement
We currently have a limit of 32 pending calls for each interpreter. This has been the limit pretty much since pending calls were added (originally for signal handling). Now that we use pending calls between interpreters (e.g. to decref an object under the correct interpreter), a maximum of 32 is too low. This will become a bigger problem as subinterpreters are used more.
The current workaround looks something like this:
...perhaps also involving a separate queue or an extra thread.
Possible improvements:
(This issue is a continuation of gh-79647.)
Linked PRs
The text was updated successfully, but these errors were encountered: