optimized event-based actors using functions

this patch saves one message per function-based actor to increase
scalability and performance