From fff32db7ceca4f933dc9a903da76ede4598a468e Mon Sep 17 00:00:00 2001 From: Ethan Atkins Date: Wed, 28 Mar 2018 17:09:12 -0700 Subject: [PATCH] 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. --- main-command/src/main/scala/sbt/Watched.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main-command/src/main/scala/sbt/Watched.scala b/main-command/src/main/scala/sbt/Watched.scala index 8b8385b61..1c2396593 100644 --- a/main-command/src/main/scala/sbt/Watched.scala +++ b/main-command/src/main/scala/sbt/Watched.scala @@ -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() }