bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=a2e90e522bccdc3d724306f6a7914e582d7d1af1

commit a2e90e522bccdc3d724306f6a7914e582d7d1af1
Author: Marcel Hollerbach <[email protected]>
Date:   Fri Dec 2 11:31:45 2016 +0100

    eo: optimize generation increase
    
    doing it by hand here saves a function call which showed up pretty happy
    on perf.
---
 src/lib/eo/eo_base_class.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index 1bc80ba..fe8cd78 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;

-- 


Reply via email to