On Tuesday, December 22, 2015 at 8:37:08 PM UTC+1, Adam Warski wrote:
>
> Having conflate only makes sense if there's some non-fused component out 
> there I guess, but you are correct of course that it can be fused with 
> things before/after it. 
>

I thought a bit about this. Actually, it is not really about fusing but by 
which resources producer and consumer of `conflate` are bounded. If input 
and output of conflate are constrained by the same resource (e.g. CPU) the 
actual result will mostly depend on the fairness of the scheduling 
algorithm that provisions the (little) existing capacity of the resource to 
the (many) tasks at hand. Usually, that happens at the run queues in the 
scheduler by choosing how long one task is allowed to run before it is 
preempted to let another task run.

Fusing "just" adds another run queue so we now have 
 * the kernel queue that schedules RUNNABLE threads on cores
 * the dispatcher that schedules tasks to pooled threads
 * the actor mailbox that processes a certain amount of messages in a batch 
before rescheduling on the dispatcher
 * the fusing GraphInterpreter queue that executes events up to an event 
limit before it looks at the actor mailbox again

So, the behavior of conflate probably changes if producers and consumers 
live in the same fused part or if they were previously also bounded by CPU. 
In many cases, however, input and output of conflate are not constrained by 
the same resource (and as you say are asynchronous for other reasons) so my 
guess would be that the result won't change much in these scenarios.

Johannes

-- 
>>>>>>>>>>      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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to