eo: move all call assignment

this improves the cache performance a lot. Caches are only invalidated
once, and not multiple times.

Reviewed-by: Carsten Haitzler (Rasterman) <rasterman.com>
Differential Revision: https://phab.enlightenment.org/D11592
This commit is contained in:
Marcel Hollerbach 2020-03-24 20:08:46 +01:00
parent 790a63c15f
commit 8e20d28dfe
1 changed files with 2 additions and 3 deletions

View File

@ -548,7 +548,6 @@ _efl_object_call_resolve(Eo *eo_id, const char *func_name, Efl_Object_Op_Call_Da
if (EINA_UNLIKELY(!eo_id)) goto on_null;
call->eo_id = eo_id;
EO_OBJ_POINTER_RETURN_VAL_PROXY(eo_id, _obj, EINA_FALSE);
@ -562,9 +561,7 @@ _efl_object_call_resolve(Eo *eo_id, const char *func_name, Efl_Object_Op_Call_Da
// hot path of the function
goto obj_super;
}
obj_super_back:
call->obj = obj;
_efl_ref(_obj);
main_klass = klass;
@ -589,6 +586,8 @@ ok_cur_klass_back:
if (EINA_LIKELY(func->func && func->src))
{
call->eo_id = eo_id;
call->obj = obj;
call->func = func->func;
call->data = _efl_data_scope_get(obj, func->src);