emage icon indicating copy to clipboard operation
emage copied to clipboard

Limit the number of parallel processes

Open pongo opened this issue 6 years ago • 3 comments

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

(windows 10)

pongo avatar Apr 09 '19 10:04 pongo

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.

skycommand avatar Feb 21 '20 02:02 skycommand

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.

douglasjunior avatar Feb 23 '20 02:02 douglasjunior

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

gmertes avatar Mar 21 '23 18:03 gmertes