Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gh-110693: Use a Larger Queue for Per-Interpreter Pending Calls #118302

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

ericsnowcurrently
Copy link
Member

@ericsnowcurrently ericsnowcurrently commented Apr 26, 2024

This is an improvement over the status quo, reducing the likelihood of completely filling the pending calls queue. However, the problem won't go away completely unless we move to an unbounded linked list or add a mechanism for waiting until the queue isn't full.

FYI, I picked 300 because it is substantially larger, but not so large it will waste much memory. Each item in the array is 20 bytes, so an array of 300 is 6kB (per interpreter). Previously it was about 1/10th of that.

@ericsnowcurrently ericsnowcurrently force-pushed the pending-calls-bigger-queue branch from d6c1504 to c717614 Compare April 26, 2024 01:10
@ericsnowcurrently ericsnowcurrently marked this pull request as ready for review April 26, 2024 01:10
@ericsnowcurrently ericsnowcurrently merged commit 1d33925 into python:main Apr 27, 2024
36 checks passed
@ericsnowcurrently ericsnowcurrently deleted the pending-calls-bigger-queue branch April 27, 2024 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant