Switching to a cached version of Stack.empty, saving 16 bytes per Actor. Switching to purging the Promises in the ActorRefProvider after successful creation to conserve memory. Stopping to clone the props everytime to set the application default dispatcher, and doing a conditional in ActorCell instead.

This commit is contained in:
Viktor Klang 2011-10-18 11:26:35 +02:00
parent 4e960e5364
commit cb8a0adbb8
8 changed files with 139 additions and 150 deletions

View file

@ -52,6 +52,8 @@ class RemoteConnectionManager(
def size: Int = connections.connections.size
def isEmpty: Boolean = connections.connections.isEmpty
def shutdown() {
state.get.iterable foreach (_.stop()) // shut down all remote connections
}