From 1eb4d1311eb611f84c1966b81d2e6a36cd7116f9 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Wed, 24 Jan 2018 15:36:39 -0800 Subject: [PATCH] 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;