From 35b98d5bc6d4b579ae5b5a1b69dce6332394a685 Mon Sep 17 00:00:00 2001 From: Eli <88557639+lishaduck@users.noreply.github.com> Date: Sun, 22 Feb 2026 22:43:44 -0600 Subject: [PATCH 1/2] run teardowns in parallel --- packages/core/src/running/runConfig.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/core/src/running/runConfig.ts b/packages/core/src/running/runConfig.ts index 33df1390e..1b6c236fa 100644 --- a/packages/core/src/running/runConfig.ts +++ b/packages/core/src/running/runConfig.ts @@ -90,9 +90,14 @@ async function runRules( ) { const reportsByFilePath = new CachedFactory(() => []); + const promises = []; for (const [rule, filesAndOptions] of rulesFilesAndOptionsByRule) { - const ruleReportsByFilePath = await runLintRule(rule, filesAndOptions); + const ruleReportsByFilePath = runLintRule(rule, filesAndOptions); + promises.push(ruleReportsByFilePath); + } + const rulesResults = await Promise.all(promises); + for (const ruleReportsByFilePath of rulesResults) { for (const [filePath, ruleReports] of ruleReportsByFilePath) { reportsByFilePath.get(filePath).push(...ruleReports); } From 56dd53753e68996fcc1f727ef81db030e7f8020b Mon Sep 17 00:00:00 2001 From: Eli <88557639+lishaduck@users.noreply.github.com> Date: Mon, 23 Feb 2026 14:11:12 -0600 Subject: [PATCH 2/2] pnpm changeset --- .changeset/jolly-rules-train.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/jolly-rules-train.md diff --git a/.changeset/jolly-rules-train.md b/.changeset/jolly-rules-train.md new file mode 100644 index 000000000..eb56bc90e --- /dev/null +++ b/.changeset/jolly-rules-train.md @@ -0,0 +1,5 @@ +--- +"@flint.fyi/core": patch +--- + +Speed up teardowns.