eo: optimize generation increase

doing it by hand here saves a function call which showed up pretty happy
on perf.
This commit is contained in:
Marcel Hollerbach 2016-12-02 11:31:45 +01:00
parent bf4b18ec92
commit a2e90e522b
1 changed files with 4 additions and 1 deletions

View File

@ -1346,7 +1346,10 @@ _event_callback_call(Eo *obj_id, Efl_Object_Data *pd,
#endif
memset(&frame, 0, sizeof(Efl_Event_Callback_Frame));
frame.generation = _efl_event_generation(pd) + 1;
frame.generation = 1;
if (pd->event_frame)
frame.generation = ((Efl_Event_Callback_Frame*)pd->event_frame)->generation + 1;
EVENT_STACK_PUSH(pd, &frame);
lookup = NULL;