akka/akka — pull request #2065 by patriknw (2014-03-12 09:33:32+00:00)
Title: =act, rem #2556 Optimize subscriptions of AddressTerminated (backport)

* unsubscribe in eventStream is too slow when using many actors
that are watching remote actors, and becomes a problem for example
when shutting down such a system
* Previous eventStream solution:
Stopping 20000 actors took 50355 ms
* This solution:
Stopping 20000 actors took 764 ms

(cherry picked from commit 67925cb94eab0c86eecddb1be143477310ddb16c)