diff options
author | Marcel Hollerbach <marcel-hollerbach@t-online.de> | 2016-12-02 11:31:45 +0100 |
---|---|---|
committer | Marcel Hollerbach <marcel-hollerbach@t-online.de> | 2016-12-02 11:34:51 +0100 |
commit | 87a01ec8e723557eb97f1a786c865c0803a10563 (patch) | |
tree | 7061cdd1ad8f8b2203772b9824f78891ee1f5944 | |
parent | 47f129742863e4ec42356a5451ed509a646fab77 (diff) | |
download | efl-87a01ec8e723557eb97f1a786c865c0803a10563.tar.gz |
eo: optimize generation increase
doing it by hand here saves a function call which showed up pretty happy
on perf.
-rw-r--r-- | src/lib/eo/eo_base_class.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c index 1bc80babe0..fe8cd78457 100644 --- a/src/lib/eo/eo_base_class.c +++ b/src/lib/eo/eo_base_class.c @@ -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; |