mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Perf: minor optimization here and there
This commit is contained in:
@@ -93,15 +93,6 @@ export const parseGfwList = async () => {
|
||||
runAgainstRuleset(path.resolve(import.meta.dir, '../List/non_ip/stream.conf'))
|
||||
]);
|
||||
|
||||
// for await (const l of readFileByLine(path.resolve(import.meta.dir, '../List/non_ip/stream.conf'))) {
|
||||
// const line = processLine(l);
|
||||
// if (!line) continue;
|
||||
// const domain = line[0] === '.' ? line.slice(1) : line;
|
||||
// if (top500Gfwed.has(domain)) {
|
||||
// notIncludedTop500Gfwed.delete(domain);
|
||||
// }
|
||||
// }
|
||||
|
||||
console.log(notIncludedTop500Gfwed);
|
||||
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user