Use MacOSXWatchService instead of PollingWatchService

This watch service should be more responsive and significantly reduce
the disk overhead of the polling based service for large repos.
This commit is contained in:
Ethan Atkins
2018-03-28 17:11:30 -07:00
parent fa56cf394b
commit fff32db7ce
@@ -141,7 +141,7 @@ object Watched {
FileSystems.getDefault.newWatchService()
case _ if Properties.isMac =>
// WatchService is slow on macOS - use old polling mode
new PollingWatchService(PollDelay)
new MacOSXWatchService(PollDelay)
case _ =>
FileSystems.getDefault.newWatchService()
}