mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 19:46:23 +00:00
format
This commit is contained in:
parent
49bd6bc3ff
commit
68ccd1d79d
4 changed files with 8 additions and 8 deletions
|
@ -86,8 +86,8 @@ const BuildArgv = {
|
||||||
},
|
},
|
||||||
concurrency: {
|
concurrency: {
|
||||||
number: true,
|
number: true,
|
||||||
describe: "how many threads to use to parse notes"
|
describe: "how many threads to use to parse notes",
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
function escapePath(fp) {
|
function escapePath(fp) {
|
||||||
|
|
|
@ -118,7 +118,8 @@ export async function parseMarkdown(ctx: BuildCtx, fps: FilePath[]): Promise<Pro
|
||||||
const log = new QuartzLogger(argv.verbose)
|
const log = new QuartzLogger(argv.verbose)
|
||||||
|
|
||||||
const CHUNK_SIZE = 128
|
const CHUNK_SIZE = 128
|
||||||
let concurrency = ctx.argv.concurrency ?? (fps.length < CHUNK_SIZE ? 1 : os.availableParallelism())
|
let concurrency =
|
||||||
|
ctx.argv.concurrency ?? (fps.length < CHUNK_SIZE ? 1 : os.availableParallelism())
|
||||||
|
|
||||||
let res: ProcessedContent[] = []
|
let res: ProcessedContent[] = []
|
||||||
log.start(`Parsing input files using ${concurrency} threads`)
|
log.start(`Parsing input files using ${concurrency} threads`)
|
||||||
|
|
|
@ -16,4 +16,3 @@ export const options: sourceMapSupport.Options = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue