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

Limit the number of parallel processes #6

Open
pongo opened this issue Apr 9, 2019 · 3 comments
Open

Limit the number of parallel processes #6

pongo opened this issue Apr 9, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@pongo
Copy link

pongo commented Apr 9, 2019

I added 100 files — e-mage started 100 processes. It's overkill.

(windows 10)

@douglasjunior douglasjunior added the enhancement New feature or request label Apr 9, 2019
@skycommand
Copy link

For a batch image compressor like E-Mage, this is a big problem. I have more than 10,000 images but I must manually add 8 each time and wait for them to finish.

But the question is: How should E-Mage handle this?

I believe an arbitrary maximum of 4 parallel processes at a time suits 90% of users. Another way would be to count the number of CPU cores and set the maximum of parallel processes to that.

@douglasjunior
Copy link
Owner

There could be a option to configure, so the user chooses how many processes will run in parallel.

The default value could be the number of CPU cores.

@gmertes
Copy link

gmertes commented Mar 21, 2023

+1. It doesn't necessarily need to be configurable, but by default it shouldn't spawn more processes than the number of cores.

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

No branches or pull requests

4 participants