Used Seq instead of Stream

Streams generically perform poorly and weren't needed here.
This commit is contained in:
Ethan Atkins 2019-08-21 21:35:51 -07:00
parent 1700b89ea4
commit 4bb2f4e968
1 changed files with 3 additions and 3 deletions

View File

@ -537,9 +537,9 @@ trait Init[ScopeType] {
// Take all the original defs and DerivedSettings along with locals, replace each DerivedSetting with the actual
// settings that were derived.
val allDefs = addLocal(init)(scopeLocal)
allDefs flatMap {
case d: DerivedSetting[_] => (derivedToStruct get d map (_.outputs)).toStream.flatten;
case s => Stream(s)
allDefs.flatMap {
case d: DerivedSetting[_] => (derivedToStruct get d map (_.outputs)).toSeq.flatten
case s => s :: Nil
}
}