Skip to content
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 is slow #25

Open
alexf101 opened this issue Feb 21, 2019 · 0 comments
Open

watchdog is slow #25

alexf101 opened this issue Feb 21, 2019 · 0 comments

Comments

@alexf101
Copy link

We use unison as a way to quickly synchronize files between developer's MacBook Pro's and EC2 instances that run a development version of our application.

So, latency is important.

I've made a fork of this repo (https://github.com/StileEducation/unox) that calls out to fswatch instead of using watchdog, and it's ~100 times faster - on our (fairly large) dev environment, fswatch uses very little CPU and notifies unison about files to sync in << 1 second, whereas watchdog uses almost a whole CPU and takes upwards of 5 seconds to notify about changes.

I believe the wistia fork also removed watchdog and replaced it with a different watcher, I assume for the same reason? (I couldn't get their fork to work for me though, it had seg fault issues on my machine).

I'm not going to make a pull request as my fork adds a dependency on having fswatch installed (brew install fswatch), and I haven't tested it for anything outside our particular use case. However, may I suggest that doing something similar may be useful upstream if other people are also concerned about latency?

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

No branches or pull requests

1 participant