cedric pushed a commit to branch master.

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

commit 1eb4d1311eb611f84c1966b81d2e6a36cd7116f9
Author: Cedric BAIL <[email protected]>
Date:   Wed Jan 24 15:36:39 2018 -0800

    eo: only call costly function _eo_op_desc_name_get when in debug mode.
---
 src/lib/eo/eo.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index 973e5647cd..49e02ba846 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -804,7 +804,9 @@ _eo_class_funcs_set(Eo_Vtable *vtable, const Efl_Object_Ops 
*ops, const _Efl_Cla
              op_id++;
           }
 
+#ifdef EO_DEBUG
         DBG("%p->%p '%s'", op_desc->api_func, op_desc->func, 
_eo_op_desc_name_get(op_desc));
+#endif
 
         if (!_vtable_func_set(vtable, klass, override_class, op, 
op_desc->func, EINA_TRUE))
           return EINA_FALSE;

-- 


Reply via email to