use new Array instead of Array.ofDim

* to avoid allocations of ClassTag and other overhead of ofDim
This commit is contained in:
Patrik Nordwall 2017-03-09 17:35:02 +01:00
parent f542ce885c
commit 305347d396
10 changed files with 18 additions and 20 deletions

View file

@ -554,7 +554,7 @@ final class GraphStageIsland(
private val logicArrayType = Array.empty[GraphStageLogic]
private[this] val logics = new ArrayList[GraphStageLogic](64)
// TODO: Resize
private val connections = Array.ofDim[Connection](64)
private val connections = new Array[Connection](64)
private var maxConnections = 0
private var outConnections: List[Connection] = Nil
private var fullIslandName: OptionVal[String] = OptionVal.None