=clu replace Set -- with diff and ++ with union
* better performance according to https://docs.google.com/presentation/d/1Qjryxoe-fYEM8ZPhM-98LKfbhnRcn5eAEMNlVVnixsA/pub
This commit is contained in:
parent
9380983d3c
commit
c7c187f6b7
24 changed files with 46 additions and 46 deletions
|
|
@ -63,7 +63,7 @@ private[persistence] trait LeveldbStore extends Actor with WriteJournalBase with
|
|||
case _ ⇒ (p, Set.empty[String])
|
||||
}
|
||||
if (tags.nonEmpty && hasTagSubscribers)
|
||||
allTags ++= tags
|
||||
allTags = allTags union tags
|
||||
|
||||
require(!p2.persistenceId.startsWith(tagPersistenceIdPrefix),
|
||||
s"persistenceId [${p.persistenceId}] must not start with $tagPersistenceIdPrefix")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue