-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
On Windows the "Number of threads" setting doesn't seem to work correctly #13
Comments
I will try to reproduce this as soon as I can, thank you for the report :) |
Windows 10 21H1 Also, now I see that the threads are not killed after processing is done, but only on app close. |
Ok, I was able to reproduce on my Windows VM: I do not saw the problem before because I often tested with only one image on Windows to check that the optimization works... I will first try to build a Linux version using Nuitka to see if I can also reproduce it here. I need to know if the problem is caused by Windows, by Nuitka or by a combination of both Windows + Nuitka |
I found why there were so much processes. The created process are:
I was misusing the I am fixing this so we will have:
I still do not know why it is so heavy to create processes on Windows but it should reduce the issues. I am building a test version to check it works on my VM :) |
Ok it seems to work fine for me. If you want to try, the build is available here: I still have a CPU peak at process creation but it is way better than before. |
Fixed in 8fe70b6 It will be released soon. Thank you again for the report! :) |
On Windows 1.1.0 doesn't seem to use that Setting correctly the whole time
Eg. For each file a thread is created on "Optimize" start, not when it actually processes the actual file. Making the machine behave oddly under the load, since if you have 1000 files to optimize it will create 1000 threads each using memory and resources, and each using 100% of one core for setting up. The system will starve at one point making even input erroneous (trying to write letters will input
ljk!@@21';s/.//
, so the letters and random punctuation signs). After the threads are created THEN it will start to use only X CPU threads as setup, if the machine still works that is :(/LE: reworded for clarity
Originally posted by @licaon-kter in #11 (comment)
The text was updated successfully, but these errors were encountered: