Skip to content
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

Core: explicitly limit threadpool #2334

Merged
merged 1 commit into from
Oct 20, 2023
Merged

Core: explicitly limit threadpool #2334

merged 1 commit into from
Oct 20, 2023

Conversation

Berserker66
Copy link
Member

What is this fixing or adding?

Currently in Python, threadpool only fires up new threads as actually required, so lowering the number of allowed workers in the threadpool does nothing currently. But that's an implementation detail I'd prefer to not rely on never changing. It's well possible threadpool spins up threads ahead of time in the future so it takes less time for them to be available, for example.

So I'd rather explicitly limit the amount ahead of time, since we know exactly how many we might need.

How was this tested?

a few gens

If this makes graphical changes, please attach screenshots.

@ThePhar ThePhar added is: maintenance Regular updates to requirements and utilities that do not fix bugs or change/add features. affects: core Issues/PRs that touch core and may need additional validation. labels Oct 20, 2023
@Berserker66 Berserker66 merged commit 1a1d607 into main Oct 20, 2023
21 checks passed
@Berserker66 Berserker66 deleted the core_limit_threadpool branch October 20, 2023 03:14
FlySniper pushed a commit to FlySniper/Archipelago that referenced this pull request Nov 14, 2023
Jouramie pushed a commit to Jouramie/Archipelago that referenced this pull request Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: core Issues/PRs that touch core and may need additional validation. is: maintenance Regular updates to requirements and utilities that do not fix bugs or change/add features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants