mirror of
https://github.com/jung-geun/NFD2NFC.git
synced 2026-06-21 12:25:14 +09:00
perf(watcher): chokidar awaitWriteFinish 제거로 idle CPU 절감
100ms 주기 stat 폴링이 누적 CPU를 점유했음. 파일 이름만 다루는 정규화 도구이므로 안정화 대기가 불필요하며, recentlyRenamed TTL 맵이 이미 중복 이벤트를 막아준다. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -50,7 +50,6 @@ export async function startDir(dir: WatchedDir): Promise<void> {
|
||||
ignoreInitial: false,
|
||||
persistent: true,
|
||||
depth: dir.recursive ? undefined : 0,
|
||||
awaitWriteFinish: { stabilityThreshold: 500, pollInterval: 100 },
|
||||
ignored: /(^|[/\\])\../,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user