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

Set the number of threads at run time #27

Open
tsoj opened this issue Oct 3, 2023 · 0 comments
Open

Set the number of threads at run time #27

tsoj opened this issue Oct 3, 2023 · 0 comments

Comments

@tsoj
Copy link

tsoj commented Oct 3, 2023

While the ThreadPoolSize property can be set during compile time, it would be neat to be able to do that during runtime, to avoid being required to compile different versions for machines with different number of cores.

Maybe making the setup proc public and allow passing a thread num argument to it could be a solution.

Edit: On second thoughts, it would also be nice to specify the pool's size per master instead of globally, but I see that this would require a more substantial change and also would change the semantics of the library significantly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant