dispatcher speed improvements
This commit is contained in:
parent
dda8e515ca
commit
d569b29a8b
2 changed files with 10 additions and 8 deletions
|
|
@ -62,13 +62,14 @@ class ExecutorBasedEventDrivenDispatcher(_name: String) extends MessageDispatche
|
|||
def dispatch(invocation: MessageInvocation) = if (active) {
|
||||
executor.execute(new Runnable() {
|
||||
def run = {
|
||||
invocation.receiver.synchronized {
|
||||
// invocation.receiver.synchronized {
|
||||
var messageInvocation = invocation.receiver._mailbox.poll
|
||||
while (messageInvocation != null) {
|
||||
messageInvocation.invoke
|
||||
messageInvocation = invocation.receiver._mailbox.poll
|
||||
}
|
||||
}
|
||||
if (messageInvocation != null) messageInvocation.invoke
|
||||
// while (messageInvocation != null) {
|
||||
// messageInvocation.invoke
|
||||
// messageInvocation = invocation.receiver._mailbox.poll
|
||||
// }
|
||||
// }
|
||||
}
|
||||
})
|
||||
} else throw new IllegalStateException("Can't submit invocations to dispatcher since it's not started")
|
||||
|
|
|
|||
|
|
@ -127,9 +127,10 @@ class AkkaParent(info: ProjectInfo) extends DefaultProject(info) {
|
|||
Credentials(Path.userHome / ".akka_publish_credentials", log)
|
||||
override def managedStyle = ManagedStyle.Maven
|
||||
|
||||
val publishTo = "Scalable Solutions Maven Repository" at "http://scalablesolutions.se/akka/repository/"
|
||||
val publishTo = "Scalable Solutions Maven Repository" at "~/tmp/akka"
|
||||
// val publishTo = "Scalable Solutions Maven Repository" at "http://scalablesolutions.se/akka/repository/"
|
||||
val sourceArtifact = Artifact(artifactID, "src", "jar", Some("sources"), Nil, None)
|
||||
val docsArtifact = Artifact(artifactID, "docs", "jar", Some("javadoc"), Nil, None)
|
||||
// val docsArtifact = Artifact(artifactID, "docs", "jar", Some("javadoc"), Nil, None)
|
||||
|
||||
override def packageDocsJar = defaultJarPath("-javadoc.jar")
|
||||
override def packageSrcJar= defaultJarPath("-sources.jar")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue