You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Guetzli uses a large amount of memory and a significant amount of CPU time.
48
-
To reduce the processor load in lossless mode, we reduce the number
49
-
of simultaneous tasks by half.
50
-
*/
51
-
isLossless ? Math.round(cpuCount/2) : cpuCount,
52
-
);
53
-
consttasksPromises=filePaths.map(
54
-
filePath=>tasksSimultaneousLimit(
55
-
()=>processFile({
45
+
consttasksSimultaneousLimit=pLimit(cpuCount);
46
+
constguetzliTasksSimultaneousLimit=pLimit(1);// Guetzli uses a large amount of memory and a significant amount of CPU time. To reduce system load, we only allow one instance of guetzli to run at the same time.
0 commit comments