mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-14 02:00:37 +08:00
Perf: improve bulkAddDomainSuffixes
This commit is contained in:
parent
5dc55afaf0
commit
c9f72bee03
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user