eo: only call costly function _eo_op_desc_name_get when in debug mode.
authorCedric BAIL <cedric@osg.samsung.com>
Wed, 24 Jan 2018 23:36:39 +0000 (15:36 -0800)
committerWonki Kim <wonki_.kim@samsung.com>
Tue, 3 Apr 2018 09:50:09 +0000 (18:50 +0900)
src/lib/eo/eo.c

index 973e564..49e02ba 100644 (file)
@@ -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;