Instead of an array, use a map from index to StateData here for faster access. https://github.com/ie3-institute/powerflow/blob/cbc20bb948b46098893dc44a443d4860afdd0074/src/main/scala/edu/ie3/powerflow/model/PowerFlowResult.scala#L17-L19 As mentioned by @t-ober here: https://github.com/ie3-institute/simona/pull/25#discussion_r915607769
Instead of an array, use a map from index to StateData here for faster access.
powerflow/src/main/scala/edu/ie3/powerflow/model/PowerFlowResult.scala
Lines 17 to 19 in cbc20bb
As mentioned by @t-ober here:
ie3-institute/simona#25 (comment)