mirror of
https://github.com/jung-geun/NFD2NFC.git
synced 2026-06-21 04:15: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:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@pieroot/nfd2nfc",
|
"name": "@pieroot/nfd2nfc",
|
||||||
"version": "2.0.0",
|
"version": "2.0.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@pieroot/nfd2nfc",
|
"name": "@pieroot/nfd2nfc",
|
||||||
"version": "2.0.0",
|
"version": "2.0.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chokidar": "^3.6.0",
|
"chokidar": "^3.6.0",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pieroot/nfd2nfc",
|
"name": "@pieroot/nfd2nfc",
|
||||||
"version": "2.0.0",
|
"version": "2.0.1",
|
||||||
"description": "macOS 한글 파일명 NFD→NFC 실시간 변환 트레이 앱 + CLI + 라이브러리",
|
"description": "macOS 한글 파일명 NFD→NFC 실시간 변환 트레이 앱 + CLI + 라이브러리",
|
||||||
"main": "out/lib/index.js",
|
"main": "out/lib/index.js",
|
||||||
"types": "out/lib/index.d.ts",
|
"types": "out/lib/index.d.ts",
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ export async function startDir(dir: WatchedDir): Promise<void> {
|
|||||||
ignoreInitial: false,
|
ignoreInitial: false,
|
||||||
persistent: true,
|
persistent: true,
|
||||||
depth: dir.recursive ? undefined : 0,
|
depth: dir.recursive ? undefined : 0,
|
||||||
awaitWriteFinish: { stabilityThreshold: 500, pollInterval: 100 },
|
|
||||||
ignored: /(^|[/\\])\../,
|
ignored: /(^|[/\\])\../,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user