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,6 @@ import { SOURCE_DIR } from './constants/dir';
const getS3OSSDomainsPromise = (async (): Promise<string[]> => {
const trie = createTrie(
await getPublicSuffixListTextPromise(),
true,
false
);