mirror of https://github.com/sbt/sbt.git
Display log when sbt loading is going to pause
Def.make could take 10099ms for 100 subprojects. This would display logs probably for projects with more than 10 subprojects, which might pause for a few seconds during load.
This commit is contained in:
parent
843f79ffd9
commit
7a00ba3925
|
|
@ -176,6 +176,10 @@ private[sbt] object Load {
|
|||
}
|
||||
val delegates = timed("Load.apply: config.delegates", log) { config.delegates(loaded) }
|
||||
val data = timed("Load.apply: Def.make(settings)...", log) {
|
||||
// When settings.size is 100000, Def.make takes around 10s.
|
||||
if (settings.size > 10000) {
|
||||
log.info(s"Resolving key references (${settings.size} settings) ...")
|
||||
}
|
||||
Def.make(settings)(delegates, config.scopeLocal, Project.showLoadingKey(loaded))
|
||||
}
|
||||
Project.checkTargets(data) foreach sys.error
|
||||
|
|
|
|||
Loading…
Reference in New Issue