Skip to content

Commit

Permalink
fix: sample more often to make sure the suggest stops on time. (#1669)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Sep 10, 2021
1 parent 1698aaf commit 2bb6c82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cspell-trie-lib/src/lib/suggestAStar.ts
Expand Up @@ -331,7 +331,7 @@ export function* genCompoundableSuggestions(
const g = idx ? 1 : 0;
candidates.add({ e: undefined, n: node, i: 0, w: '', g, r: undefined, a: true });
});
const iterationsBeforePolling = 1000;
const iterationsBeforePolling = 100;
let i = iterationsBeforePolling;
let maxSize = 0;
let best: Candidate | undefined;
Expand Down

0 comments on commit 2bb6c82

Please sign in to comment.