From ae36a6a388c2cb83afb3f7f154d954439f34a63a Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Tue, 20 Sep 2022 16:37:38 +0800 Subject: [PATCH] Reduce `concurrent` to `32` --- README.md | 8 ++++---- src/cli.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index eb0c15f..ca19e4b 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ Options: -c, --changefreq comma-separated glob-changefreq pairs -p, --priority comma-separated glob-priority pairs --no-robots do not parse html files for noindex meta - --concurrent concurrent number of html parsing ops (default: 128) + --concurrent concurrent number of html parsing ops (default: 32) --no-clean do not use clean URLs --slash add trailing slash to all URLs -f, --format sitemap format (choices: "xml", "txt", "both", default: "both") @@ -69,8 +69,8 @@ is excluded from the generated sitemap. To disable this behaviour, pass option ` For better performance, file reads are streamed in `1kb` chunks, and parsing stops immediately when either the `noindex` meta, or the `` closing tag, is detected (the `` is not parsed). This operation is performed concurrently with an -[async pool](https://github.com/rxaviers/async-pool) limit of 128. The limit can be tweaked using -the `--concurrent` option. +[async pool](https://github.com/rxaviers/async-pool) limit of 32. The limit can be tweaked using the +`--concurrent` option. #### Clean URLs @@ -172,7 +172,7 @@ const options = { changefreq: [], priority: [], robots: true, - concurrent: 128, + concurrent: 32, clean: true, slash: false } diff --git a/src/cli.js b/src/cli.js index 06c4936..87f7797 100644 --- a/src/cli.js +++ b/src/cli.js @@ -21,7 +21,7 @@ program .option('-c, --changefreq ', 'comma-separated glob-changefreq pairs') .option('-p, --priority ', 'comma-separated glob-priority pairs') .option('--no-robots', 'do not parse html files for noindex meta') - .option('--concurrent ', 'concurrent number of html parsing ops', 128) + .option('--concurrent ', 'concurrent number of html parsing ops', 32) .option('--no-clean', 'do not use clean URLs') .option('--slash', 'add trailing slash to all URLs') .addOption(