mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Perf: improve performance of reject suffix/keyword deduping
This commit is contained in:
@@ -109,7 +109,7 @@ async function transformDomainset(parentSpan: Span, sourcePath: string, relative
|
||||
)
|
||||
];
|
||||
|
||||
return createRuleset(
|
||||
return span.traceAsyncFn(() => createRuleset(
|
||||
span,
|
||||
title,
|
||||
description,
|
||||
@@ -118,7 +118,7 @@ async function transformDomainset(parentSpan: Span, sourcePath: string, relative
|
||||
'domainset',
|
||||
path.resolve(outputSurgeDir, relativePath),
|
||||
path.resolve(outputClashDir, `${relativePath.slice(0, -path.extname(relativePath).length)}.txt`)
|
||||
);
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user