mirror of
https://github.com/sbt/sbt.git
synced 2026-09-06 09:37:02 +02:00
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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user