mirror of https://github.com/sbt/sbt.git
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:
parent
c37f2607f1
commit
fcd24ba7cd
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue