Commit 32247f61 authored by Dominik Charousset's avatar Dominik Charousset

optimized event-based actors using functions

this patch saves one message per function-based actor to increase
scalability and performance
parent d9bffea7
......@@ -126,7 +126,7 @@ class actor_facade<Ret(Args...)> : public actor {
template<long... Is>
void enqueue_impl(const actor_ptr& sender, any_tuple msg, message_id id, util::int_list<Is...>) {
auto opt = tuple_cast<Args...>(msg);
auto opt = tuple_cast<typename util::rm_ref<Args>::type...>(msg);
if (opt) {
response_handle handle{this, sender, id};
size_t number_of_values = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment