Skip to content

Commit 9812452

Browse files
authored
fix: Run perf tests on trie-lib (#8188)
1 parent d00dac6 commit 9812452

File tree

86 files changed

+924
-582
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+924
-582
lines changed

packages/cspell-lib/api/api.d.ts

Lines changed: 13 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cspell-lib/src/lib/textValidation/docValidator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ export class DocumentValidator {
455455
ignoreCase: !(settings.caseSensitive ?? false),
456456
timeout: settings.suggestionsTimeout,
457457
numChanges: settings.suggestionNumChanges,
458-
};
458+
} as const;
459459

460460
const rawSuggestions = dict.suggest(text, sugOptions);
461461
return this.adjustSuggestions(text, rawSuggestions);

packages/cspell-trie-lib/api/api.d.ts

Lines changed: 15 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cspell-trie-lib/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@
3434
"clean-build": "pnpm run clean && pnpm run build",
3535
"coverage": "vitest run --coverage",
3636
"test:watch": "vitest",
37-
"test:perf": "pnpm test:perf:js --all",
38-
"test:perf:ts": "NODE_ENV=production NODE_OPTIONS=--import=@swc-node/register/esm-register insight --file \"**/*.perf.{mts,ts}\" -t 500",
39-
"test:perf:js": "NODE_ENV=production insight -t 500",
37+
"test:perf": "pnpm test:perf:ts --all",
38+
"test:perf:ts": "insight --file \"**/*.perf.{mts,ts}\" -t 500",
4039
"test:perf:prof": "NODE_ENV=production node --cpu-prof ../../node_modules/perf-insight/bin.mjs -t 1000",
4140
"perf": "pnpm test:perf",
4241
"test": "vitest run",
@@ -61,8 +60,7 @@
6160
"homepage": "https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-trie-lib#readme",
6261
"dependencies": {
6362
"@cspell/cspell-pipe": "workspace:*",
64-
"@cspell/cspell-types": "workspace:*",
65-
"gensequence": "^8.0.8"
63+
"@cspell/cspell-types": "workspace:*"
6664
},
6765
"engines": {
6866
"node": ">=20"
@@ -71,6 +69,7 @@
7169
"@cspell/dict-en_us": "^4.4.25",
7270
"@cspell/dict-es-es": "^3.0.8",
7371
"@cspell/dict-nl-nl": "^2.4.2",
72+
"gensequence": "^8.0.8",
7473
"import-meta-resolve": "^4.2.0"
7574
}
7675
}

0 commit comments

Comments
 (0)