Stamp source files in parallel

I noticed a modest performance increase could be achieved by stamping
the source files in parallel.
This commit is contained in:
Ethan Atkins 2020-07-17 12:08:16 -07:00
parent b678d2115f
commit 1b5cbd8ead
1 changed files with 2 additions and 2 deletions

View File

@ -289,10 +289,10 @@ private[sbt] object Settings {
}
val filter =
(fileInputIncludeFilter in scope).value && !(fileInputExcludeFilter in scope).value
(Keys.allInputPathsAndAttributes in scope).value.flatMap {
(Keys.allInputPathsAndAttributes in scope).value.par.flatMap {
case (path, a) if filter.accept(path, a) => stampFile(path)
case _ => None
}
}.toVector
})
}