Perf: make build reject hosts faster

This commit is contained in:
SukkaW
2023-07-22 21:51:38 +08:00
parent dcf565fb6b
commit 6ffff1093b
2 changed files with 5 additions and 22 deletions

View File

@@ -141,8 +141,8 @@ const domainSuffixSet = new Set();
});
for await (const line of rl3) {
const l = processLine(line);
if (l) {
domainSets.add(l);
if (l && l[0] === '.') {
domainSuffixSet.add(l.slice(1));
}
}