Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

Limit the number of image compressed concurrently #309

Open
kiwixz opened this issue Mar 11, 2021 · 1 comment
Open

Limit the number of image compressed concurrently #309

kiwixz opened this issue Mar 11, 2021 · 1 comment

Comments

@kiwixz
Copy link

kiwixz commented Mar 11, 2021

Hello there, it seems that image-webpack-loader is trying to compress all images in parallel (in my config at least). Is there anyway to limit this to the number of processors of the machine, or something similar ?

top screenshot

@Milerius
Copy link

Hello there, it seems that image-webpack-loader is trying to compress all images in parallel (in my config at least). Is there anyway to limit this to the number of processors of the machine, or something similar ?

top screenshot

you can use https://man7.org/linux/man-pages/man1/taskset.1.html

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

No branches or pull requests

2 participants