path: root/src/benchmarks
diff options
authorTom Hacohen <tom@stosb.com>2016-09-09 10:53:58 +0100
committerTom Hacohen <tom@stosb.com>2016-09-09 11:14:35 +0100
commit7ebf9d879d41169beda06b0195e4a3b3c60818e1 (patch)
treed95a4bf61adb806446376b3c5e84b7deb2dfba3c /src/benchmarks
parenteolian: separate ops struct for normal and class funcs (to match new API) (diff)
Eo: Change the way functions are registered to classes
This change lets us remove a field from the structure that leads to around 20KiB more of saving in private dirty pages in elementary. This also looks a bit better and feels a bit cleaner. Breaks API and ABI.
Diffstat (limited to 'src/benchmarks')
2 files changed, 2 insertions, 2 deletions
diff --git a/src/benchmarks/eo/class_simple.c b/src/benchmarks/eo/class_simple.c
index 75f8eb0636..63378d6033 100644
--- a/src/benchmarks/eo/class_simple.c
+++ b/src/benchmarks/eo/class_simple.c
@@ -38,7 +38,7 @@ _class_initializer(Efl_Class *klass)
EFL_OBJECT_OP_FUNC(simple_other_call, _other_call),
- return efl_class_functions_set(klass, &ops);
+ return efl_class_functions_set(klass, &ops, NULL);
static const Efl_Class_Description class_desc = {
diff --git a/src/benchmarks/eo/eo_bench_eo_do.c b/src/benchmarks/eo/eo_bench_eo_do.c
index d434ab9dad..ec69bf3145 100644
--- a/src/benchmarks/eo/eo_bench_eo_do.c
+++ b/src/benchmarks/eo/eo_bench_eo_do.c
@@ -65,7 +65,7 @@ _class_initializer(Efl_Class *klass)
EFL_OBJECT_OP_FUNC(simple_a_set, _a_set),
- return efl_class_functions_set(klass, &ops);
+ return efl_class_functions_set(klass, &ops, NULL);
static void