Adding final declarations on a number of case-classes in Mailbox.scala, and also made constants of methods that were called frequently in the hot path

This commit is contained in:
Viktor Klang 2011-10-07 11:34:07 +02:00
parent 913ef5d232
commit 4313a28fbd
2 changed files with 21 additions and 18 deletions

View file

@ -274,6 +274,11 @@ abstract class MessageDispatcher extends Serializable {
protected[akka] def throughput: Int
protected[akka] def throughputDeadlineTime: Int
@inline
protected[akka] final val isThroughputDeadlineTimeDefined = throughputDeadlineTime > 0
@inline
protected[akka] final val isThroughputDefined = throughput > 1
protected[akka] def executeTask(invocation: TaskInvocation)
/**