mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Perf: improve bulkAddDomainSuffixes
This commit is contained in:
@@ -96,7 +96,7 @@ export class FileOutput {
|
|||||||
}
|
}
|
||||||
|
|
||||||
addDomainSuffix(domain: string, lineFromDot = domain[0] === '.') {
|
addDomainSuffix(domain: string, lineFromDot = domain[0] === '.') {
|
||||||
this.domainTrie.add(domain, true, lineFromDot ? 1 : 0);
|
this.domainTrie.add(domain, true, null, lineFromDot ? 1 : 0);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user