Union and diff for sets are more performant

This commit is contained in:
Johan Andrén 2020-06-11 15:52:46 +02:00
parent 9c7f16a4db
commit 33b34da36c
3 changed files with 4 additions and 4 deletions

View file

@ -198,7 +198,7 @@ private[akka] object Shard {
else newState
} else {
if (r.ackTo.isEmpty) this
else RememberingStart(ackTo ++ r.ackTo)
else RememberingStart(ackTo.union(r.ackTo))
}
case _ => throw new IllegalArgumentException(s"Transition from $this to $newState not allowed")
}