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

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@pieroot/nfd2nfc",
"version": "2.0.0",
"version": "2.0.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@pieroot/nfd2nfc",
"version": "2.0.0",
"version": "2.0.1",
"license": "MIT",
"dependencies": {
"chokidar": "^3.6.0",

View File

@@ -1,6 +1,6 @@
{
"name": "@pieroot/nfd2nfc",
"version": "2.0.0",
"version": "2.0.1",
"description": "macOS 한글 파일명 NFD→NFC 실시간 변환 트레이 앱 + CLI + 라이브러리",
"main": "out/lib/index.js",
"types": "out/lib/index.d.ts",

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