Chore: refine reject domainset building

This commit is contained in:
SukkaW
2024-01-28 16:30:29 +08:00
parent f51de780f5
commit c95e96fc61
10 changed files with 186 additions and 145 deletions

View File

@@ -12,12 +12,7 @@ export function domainDeduper(inputDomains: string[], toArray = true): string[]
continue;
}
const found = trie.find(d, false);
for (let j = 0, len2 = found.length; j < len2; j++) {
sets.delete(found[j]);
}
trie.substractSetInPlaceFromFound(d, sets);
sets.delete(d.slice(1));
}