mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Remove unused codes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { readFileByLine, readFileByLineNew } from './fetch-text-by-line';
|
||||
import { readFileByLine/* , readFileByLineNew */ } from './fetch-text-by-line';
|
||||
import path from 'node:path';
|
||||
import fsp from 'node:fs/promises';
|
||||
import { OUTPUT_SURGE_DIR } from '../constants/dir';
|
||||
@@ -10,7 +10,7 @@ const file = path.join(OUTPUT_SURGE_DIR, 'domainset/reject_extra.conf');
|
||||
|
||||
group(() => {
|
||||
bench('readFileByLine', () => Array.fromAsync(readFileByLine(file)));
|
||||
bench('readFileByLineNew', async () => Array.fromAsync(await readFileByLineNew(file)));
|
||||
// bench('readFileByLineNew', async () => Array.fromAsync(await readFileByLineNew(file)));
|
||||
bench('fsp.readFile', () => fsp.readFile(file, 'utf-8').then((content) => content.split('\n')));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user