Skip to content

fix(watcher): bound memory on ignored path churn - #5

Merged
nullmastermind merged 1 commit into
masterfrom
fix/watcher-ignored-tree-memory
Oct 18, 2026
Merged

nullmastermind merged 1 commit into
masterfrom
fix/watcher-ignored-tree-memory

Conversation

@nullmastermind

Copy link
Copy Markdown
Owner
  • Debouncer file-id cache walked whole trees (pnpm junctions) and retained one entry per path, growing to multi-GB on monorepos while real indexed files stayed small.
  • Drop events under SKIP_DIRS, dot-dirs, and gitignored trees before enqueue so ignored churn never opens the DB or refreshes O(repo) sidecars; safety-net scan still reconciles stale entries.

- Debouncer file-id cache walked whole trees (pnpm junctions)
  and retained one entry per path, growing to multi-GB on
  monorepos while real indexed files stayed small.
- Drop events under SKIP_DIRS, dot-dirs, and gitignored
  trees before enqueue so ignored churn never opens the DB
  or refreshes O(repo) sidecars; safety-net scan still
  reconciles stale entries.
@nullmastermind
nullmastermind merged commit 4d57d01 into master Oct 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant