Skip to content

Commit

Permalink
Auto concurrency min of 8, max of 16 #258
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Dec 19, 2024
1 parent 124a9c0 commit 5f27144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/global-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const DEFAULTS = {
formats: ["webp", "jpeg"], // "png", "svg", "avif"

// Via https://github.com/11ty/eleventy-img/issues/258
concurrency: Math.max(8, os.availableParallelism()),
concurrency: Math.max(Math.min(8, os.availableParallelism()), 16),

urlPath: "/img/",
outputDir: "img/",
Expand Down

0 comments on commit 5f27144

Please sign in to comment.