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:
2026-05-11 13:48:28 +09:00
parent 2e3a9d1402
commit 4cbc044d15
3 changed files with 3 additions and 4 deletions

View File

@@ -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: /(^|[/\\])\../,
});