Skip to content

Commit 410ac2c

Browse files
committed
only instantiate threads when needed
1 parent dd6f57f commit 410ac2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/dictionary/soft-build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { exists } from "@std/fs/exists";
44
import { Parser } from "./parallel_parser.ts";
55

66
if (import.meta.main) {
7-
using parser = new Parser();
87
if (!await exists(new URL("./global_dictionary.ts", import.meta.url))) {
8+
using parser = new Parser();
99
const Dictionary = await import("./build.ts");
1010
if (!await Dictionary.build(parser)) {
1111
await Dictionary.buildWithDictionary(new Map());

0 commit comments

Comments
 (0)