-
-
Notifications
You must be signed in to change notification settings - Fork 704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Watchdog detects changes half a second later than dsoprea/PyInotify under Linux #390
Comments
This has to do with how watchdog creates move events. In order to match inotify's |
Buffering all events when only I don't get why my testing resulted in a 0.5s delay the timeouts all seem to be set to 1s. |
The delay is found in the |
@DonyorM thanks. I monkey patched it using
While this got rid of the delay the move events interestingly still seem to get merged. |
Closed with 2b2091a. |
I am working on a project where the file changes should be detected as soon as possible.
I started out using watchdog since it's crossplatform and conveniently abstracts the filesystem events,
but I noticed that watchdog takes 0.5s longer than dsoprea/PyInotify to detect file changes. Is this just the price you have to pay for the abstraction? Or could watchdog be more optimized?
Code I used for benchmarking:
The text was updated successfully, but these errors were encountered: