Skip to content

Make recursive inotify directory watchers fully asynchronous#252

Merged
l-kramer merged 4 commits intomasterfrom
async_inotify_watchers
Oct 14, 2025
Merged

Make recursive inotify directory watchers fully asynchronous#252
l-kramer merged 4 commits intomasterfrom
async_inotify_watchers

Conversation

@s-ludwig
Copy link
Member

This avoids blocking the calling thread for possibly long periods of time when iterating over large directory hierarchies to create watches for each directory.

Reimplements the inotify based watcher so that iterating over sub directories is done in an I/O worker thread instead of blocking the calling thread.
dirEntries always calls stat to determine if an entry is a directory, which makes iterating over large directory hierarchies very slow.
@s-ludwig s-ludwig requested a review from l-kramer October 14, 2025 18:03
@l-kramer l-kramer merged commit 243b21e into master Oct 14, 2025
22 checks passed
@s-ludwig s-ludwig deleted the async_inotify_watchers branch October 14, 2025 19:10
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.

2 participants