mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Perf: domainset class w/o build domain map
This commit is contained in:
@@ -26,9 +26,11 @@ export function buildParseDomainMap(inputs: string[]) {
|
||||
return { domainMap, subdomainMap };
|
||||
}
|
||||
|
||||
export function sortDomains(inputs: string[],
|
||||
export function sortDomains(
|
||||
inputs: string[],
|
||||
domainMap?: Map<string, string> | null,
|
||||
subdomainMap?: Map<string, string> | null) {
|
||||
subdomainMap?: Map<string, string> | null
|
||||
) {
|
||||
if (!domainMap || !subdomainMap) {
|
||||
const { domainMap: dm, subdomainMap: sm } = buildParseDomainMap(inputs);
|
||||
domainMap = dm;
|
||||
|
||||
Reference in New Issue
Block a user