mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Perf: faster reject domainset build
This commit is contained in:
@@ -352,11 +352,11 @@ const threads = isCI ? cpuCount : cpuCount / 2;
|
||||
)
|
||||
).forEach((result, taskIndex) => {
|
||||
const chunk = tasksArray[taskIndex];
|
||||
result.forEach((value, index) => {
|
||||
if (value === 1) {
|
||||
domainSets.delete(chunk[index])
|
||||
for (let i = 0, len = result.length; i < len; i++) {
|
||||
if (result[i]) {
|
||||
domainSets.delete(chunk[i]);
|
||||
}
|
||||
})
|
||||
}
|
||||
});
|
||||
|
||||
console.log(`* Dedupe from covered subdomain - ${(Date.now() - START_TIME) / 1000}s`);
|
||||
|
||||
Reference in New Issue
Block a user