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

Parallel processing support in Windows? #128

Open
dmitry-brok opened this issue Jan 26, 2023 · 2 comments
Open

Parallel processing support in Windows? #128

dmitry-brok opened this issue Jan 26, 2023 · 2 comments

Comments

@dmitry-brok
Copy link

AFAIK this -w option should work since version 1.5.0.
>>Parallel processing support added. Use option -w max or --workers=max to enable.

I built the latest jpegoptim under Ubuntu and the -w worked just fine
This Windows build seems to have no this option enabled

I really need this parallel processing under Windows ... Is there a way to get it?

@tjko
Copy link
Owner

tjko commented Jan 27, 2023

Current parallel processing implementation relies on fork() system call, that is not present in Windows (or has it been recently added?), so it's not trivial to enable this feature on Windows...

Using threading (vs. current forking) might be one option, but I seem to recall that libjpeg library was not thread-safe.... (?)

@dmitry-brok
Copy link
Author

Okay I got it
So it's not that easy
I have to stay with linux version though

Thank you

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

2 participants