AkkaNetContrib / Home

Akka.NET public public announcements and rules
8 stars 3 forks source link

Plugin proposal: Akka.Dispatchers.Hopac #24

Open sean-gilliam opened 6 years ago

sean-gilliam commented 6 years ago

Copy of akkadotnet/akka.net#543


Since Akka.NET allows us to use custom dispatchers in order to manage OS resources, we may create a custom Dispatcher using Hopac instead of Tasks or Threads. Since Hopac jobs are highly optimized (they could be significantly faster than TPL, see link), there is possibility to have some performance gain from this change. Hopac also introduces many other primitives (channels, actors etc.) which may be usefull in other parts of the Akka.NET framework... and supports Mono better than current TPL implementation.

This is more measure and research type of task. I hope to use Hopac dispatcher to have higher performance than with TPL, but to be sure, one need to create that library and create some metrics to compare.

Prerequisites

Links

eacasanovaspedre commented 3 years ago

What's the state of this? I've been using Hopac for a long time and recently started learning Akka.Net. I see the use of .Net Tasks and Async a bit disappointing.