mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Perf: refactor trie to avoid iterate twice
This commit is contained in:
@@ -115,8 +115,8 @@ export const buildRejectDomainSet = task(require.main === module, __filename)(as
|
||||
});
|
||||
|
||||
const [baseTrie, extraTrie] = span.traceChildSync('create smol trie while deduping black keywords', (childSpan) => {
|
||||
const baseTrie = createTrie(null, true, true);
|
||||
const extraTrie = createTrie(null, true, true);
|
||||
const baseTrie = createTrie(null, true);
|
||||
const extraTrie = createTrie(null, true);
|
||||
|
||||
const kwfilter = createKeywordFilter(domainKeywordsSet);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user