Jacky Zhao
2023-08-09 68ccd1d79de7cef275605e238238c1a80bbb074f
format
4 files modified
8 ■■■■ changed files
quartz/bootstrap-cli.mjs 4 ●●●● patch | view | raw | blame | history
quartz/processors/parse.ts 3 ●●●● patch | view | raw | blame | history
quartz/sourcemap.ts 1 ●●●● patch | view | raw | blame | history
quartz/trace.ts patch | view | raw | blame | history
quartz/bootstrap-cli.mjs
@@ -86,8 +86,8 @@
  },
  concurrency: {
    number: true,
    describe: "how many threads to use to parse notes"
  }
    describe: "how many threads to use to parse notes",
  },
}
function escapePath(fp) {
quartz/processors/parse.ts
@@ -118,7 +118,8 @@
  const log = new QuartzLogger(argv.verbose)
  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[] = []
  log.start(`Parsing input files using ${concurrency} threads`)
quartz/sourcemap.ts
@@ -16,4 +16,3 @@
    }
  },
}
quartz/trace.ts