Hi,

I have an issue with overhead on awaiting ask.

import scala.concurrent.duration._

val a = dispatcher.ask(StartWork(arg))(10 seconds)

Await.result(a, 10 seconds).asInstanceOf[WorkResult].result

and when I benchmark that I get about 500ms and more.

dispatcher actor spawns child task and child task do the work. It take 
under 90ms. 

The performance of Dispatcher and Task actors is measured by putting start 
and and System.currentTimeMillis

I have Scala 2.10.4, Akka 2.3.4. It uses also Play Framework 2.3.1 and this 
work is taken deep inside services in my application but measurements are 
taken in call place. My question is: is it normal to Await and ask take 
more then 400ms. It looks like something with executing context. My guess 
is that it executes in different threadpool. Thanks in advance!

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to