Union and diff for sets are more performant
This commit is contained in:
parent
9c7f16a4db
commit
33b34da36c
3 changed files with 4 additions and 4 deletions
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue