Reduce command polling period

The only thing this function does is poll a queue and check a deadline.
There is no need to put such a large sleep duration in.
This commit is contained in:
Ethan Atkins 2019-02-14 21:12:12 -08:00
parent c37f2607f1
commit fcd24ba7cd
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ private[sbt] final class CommandExchange {
Option(commandQueue.poll) match {
case Some(x) => x
case None =>
Thread.sleep(50)
Thread.sleep(2)
val newDeadline = if (deadline.fold(false)(_.isOverdue())) {
GCUtil.forceGcWithInterval(interval, logger)
None