Skip to content

Commit

Permalink
Reduce concurrent to 32
Browse files Browse the repository at this point in the history
  • Loading branch information
zerodevx committed Sep 20, 2022
1 parent 8ef9c90 commit ae36a6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Options:
-c, --changefreq <glob,changefreq...> comma-separated glob-changefreq pairs
-p, --priority <glob,priority...> comma-separated glob-priority pairs
--no-robots do not parse html files for noindex meta
--concurrent <max> concurrent number of html parsing ops (default: 128)
--concurrent <max> concurrent number of html parsing ops (default: 32)
--no-clean do not use clean URLs
--slash add trailing slash to all URLs
-f, --format <format> sitemap format (choices: "xml", "txt", "both", default: "both")
Expand All @@ -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 `</head>` closing tag, is detected (the `<body>` 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

Expand Down Expand Up @@ -172,7 +172,7 @@ const options = {
changefreq: [],
priority: [],
robots: true,
concurrent: 128,
concurrent: 32,
clean: true,
slash: false
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ program
.option('-c, --changefreq <glob,changefreq...>', 'comma-separated glob-changefreq pairs')
.option('-p, --priority <glob,priority...>', 'comma-separated glob-priority pairs')
.option('--no-robots', 'do not parse html files for noindex meta')
.option('--concurrent <max>', 'concurrent number of html parsing ops', 128)
.option('--concurrent <max>', 'concurrent number of html parsing ops', 32)
.option('--no-clean', 'do not use clean URLs')
.option('--slash', 'add trailing slash to all URLs')
.addOption(
Expand Down

0 comments on commit ae36a6a

Please sign in to comment.