Perf: refactor trie to avoid iterate twice

This commit is contained in:
SukkaW
2024-09-07 00:16:56 +08:00
parent 315b38b999
commit 8bcfc0e528
8 changed files with 191 additions and 197 deletions

View File

@@ -14,7 +14,7 @@ export const parseDomesticList = async () => {
}
}
const trie = createTrie(set, true);
const trie = createTrie(set);
const top5000 = new Set<string>();