Commit Graph

72 Commits

Author SHA1 Message Date
Cedric BAIL 5db949196e eina: remove benchmark for Eina_Promise. 2016-11-07 11:12:33 -08:00
Tom Hacohen 7ebf9d879d 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.
2016-09-09 11:14:35 +01:00
Tom Hacohen bd3801247e Eo: Make function overrides implicit.
Before this commit, function overrides were explicit. That is, you'd
have to explicitly state you were overriding a function instead of
creating a new one. This made the code a tad more complex, and was also
a bit more annoying to use. This commit removes this extra piece of
information.

This means we now store much less information per function, that will
let us further optimise out structures in the future.
2016-09-08 13:59:04 +01:00
Tom Hacohen 75c981a9d9 Eo benchmarks: Fix according to recent Eo changes.
Thanks to Stefan for the report.
2016-09-06 13:58:13 +01:00
Vitor Sousa f02ff462e7 efl callbacks: update some events calls to no longer trigger legacy callbacks 2016-08-30 13:59:59 -03:00
Tom Hacohen d5e321466e Efl object: Rename Eo_Event -> Efl_Event.
This is the last step of the Eo renaming efforts.
2016-08-30 13:34:10 +01:00
Vitor Sousa 8356b16a49 Efl Object: remove legacy callback calls from event_callback_call
Efl.Object.event_callback_call no longer calls legacy smart callbacks;
calling only event callbacks registered with the given event description
pointer.

Create the method Efl.Object.event_callback_legacy_call to inherit the old
behavior from Efl.Object.event_callback_call, calling both Efl.Object events
and legacy smart callbacks.

Update all other files accordingly in order to still supply legacy
callbacks while they are necessary.
2016-08-26 15:45:07 -03:00
Tom Hacohen a6f126af12 Efl object: Don't pass events to eo class creation.
This was never used and there is no plan to ever use it. I'm going to
soon add a different mechanism with which it will be possible to provide
them again to Eo if ever needed without breaking ABI. Though it's
unlikely it will ever be.
2016-08-23 14:47:28 +01:00
Tom Hacohen e65aae994e Eo: Finish the renaming of Eo to the EFL.
This renames all the rest of the API to the EFL namespace except for
Eo_Event that will follow soon.

Obviously breaks both API and ABI.
2016-08-15 15:07:42 +01:00
Tom Hacohen c662934be8 Change the EFL to follow the new Eo rename. 2016-08-11 17:04:43 +01:00
Tom Hacohen 6202cc7485 Adjust the code according to the eo event stop changes.
This was changed in the previous commit.
2016-06-20 18:02:00 +01:00
Stefan Schmidt 4a59fc4eb5 benchmark: eo: add missing phthread flag to linker
/usr/bin/ld: class_simple.o: undefined reference to symbol 'pthread_spin_trylock@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
2016-06-13 12:01:13 +02:00
Lauro Moura 46843551c0 eina: Remove value type promises
All values in promises are now considered as by-pointer.
2016-06-09 22:38:54 -03:00
Stefan Schmidt 14c8ddc678 benchmark: remove unused variable
Looks like this was forgotten during some re-factoring of the code.
2016-06-06 14:17:07 +02:00
Stefan Schmidt 12b7c52323 benchmark: mark parameter as unused to ignore compile warning 2016-06-06 14:16:28 +02:00
Lauro Moura c6733fbbed eina: Fixes on promises benchmark
- Updated after pointer vs value change
- Updated callbacks after removal of promise argument
2016-06-05 21:57:08 -03:00
Lauro Moura 3022503aa5 eo: Fix compilation of benchmark
- Missing Eo* self in method declarations.
- Gcc complaining about variable-sized object being initialized.
2016-06-05 21:57:08 -03:00
Felipe Magno de Almeida 8fec0d5139 eina: Remove unnecessary indirection to promises
Now when dealing with pointer types, we will not get pointer to
pointer semantics in callbacks and eina_promise_owner_value_set
for Eina_Promise.

It will work as expected:

Eina_Promise_Owner* promise = eina_promise_add();

void* p = malloc(sizeof(T));
eina_promise_owner_value_set(promise, p, &free);
2016-06-03 17:22:12 -03:00
Felipe Magno de Almeida 1eafe1d16a eina: Add non-allocated version to benchmark 2016-05-30 17:01:40 -03:00
Felipe Magno de Almeida 6e02d52fbb eina: Add mempool usage in benchmark 2016-05-30 16:22:27 -03:00
Felipe Magno de Almeida edd99d24ef eina: Add benchmarks for eina promises 2016-05-26 14:20:24 -03:00
Tom Hacohen f24210caac Revert "Automatic migration to the new eo_add syntax."
This reverts commit 4f949a2757.
2016-03-11 12:29:03 +00:00
Tom Hacohen 4f949a2757 Automatic migration to the new eo_add syntax. 2016-03-09 16:09:14 +00:00
Tom Hacohen f21ade6123 Automatic migration to Eo4.
I just ran my script (email to follow) to migrate all of the EFL
automatically. This commit is *only* the automatic conversion, so it can
be easily reverted and re-run.
2016-03-03 09:58:08 +00:00
Tom Hacohen e71e6561ee Eo callbacks: Migrate all of the EFL to the new event cb signatures. 2016-02-29 11:33:27 +00:00
Vincent Torri 3b44645363 efl: add binary mode to f(re)open() calls
This allows better compatibility with Windows

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-05 21:04:36 +01:00
Tom Hacohen 4bf0f6455d Eo benchmarks: Add basic callbacks benchmarks. 2015-11-09 11:43:04 +00:00
Tom Hacohen 862372ed23 Eo benchmarks: Improve benchmarks.
Add more cases, and tune the number of times we test.
2015-11-09 11:43:04 +00:00
Tom Hacohen 9f6ec045a7 Eo benchmark: Fix super benchmark. 2015-11-09 11:43:04 +00:00
Tom Hacohen a3f9b2e051 Eo: Fix examples and benchmarks according to recent Eo changes. 2015-09-28 16:18:09 +01:00
Tom Hacohen 9328524da4 Eo: Remove EO_SENTINEL.
This was never really needed because we always had the count.
Removing this now because we are already breaking API and ABI.
2015-09-28 15:52:50 +01:00
vivek eec4a7bd0c eina: add benchmark for crc hash in eina benchmark
Summary:
The code added is actually benchmarking all hash function key with various length (8, 32, 256 bytes).

Signed-off-by: vivek <vivek.ellur@samsung.com>

Reviewers: Sergeant_Whitespace, cedric

Reviewed By: cedric

Subscribers: Sergeant_Whitespace, cedric

Differential Revision: https://phab.enlightenment.org/D2217

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-05-07 09:53:11 +02:00
Avi Levin d5496b09ad eina: fix eina_bench.c compilation error.
Summary:
When trying to compile eina_bench.c we get an error that say we didnt
defined the variables that EINA_ARRAY_ITER_NEXT. I defined them.
@fix

Reviewers: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1952

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-09 22:04:51 +01:00
Srivardhan Hebbar 75b77c4722 eina: removed multiple eina_init call.
Summary:
I observed that eina_init() was called twice in this function and eina_shutdown() once. So thought this might be a mistake, and so have cleaned it.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>

Reviewers: devilhorns, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1748

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-12-09 11:17:54 +01:00
Srivardhan Hebbar da548e5910 eina: Refactored code and removed unwanted assignment.
Summary:
Removed unused assignment for length.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1739
2014-12-08 14:46:50 +01:00
Srivardhan Hebbar c13ee92297 eina: corrected documentation of ecore_hash_destroy function in benchmarj.
Summary:
ecore_hash_destroy function return nothing, still in the documentation of the function, it was mentioned that it would return true or false. So corrected the documentation.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>

Reviewers: devilhorns, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1738

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-12-08 09:18:15 +01:00
kabeer khan abb03f76c4 eina: Remove TODO, add code to delete the modules array
Summary:
As mentioned in TODO in eina_bench.c I added the code to loop through _modules array and delete each item.:

Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: cedric, raster

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1446

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-09-22 14:59:27 +02:00
Daniel Juyung Seo 8ba2cc6fe9 doc: fixed typo. 2014-08-18 01:10:39 +09:00
Sebastian Dransfeld b9c2a08105 benchmarks: close mkstemp file
eina_file_mkstemp returns an open filedescriptor, so we need to close
it.
2014-08-14 13:30:48 +02:00
Savio Sena 073b666022 autotools: Fixed 'make examples' and 'make examples-install'
It was broken in set-ups with ($(builddir) != $(srcdir)) && ($(builddir) !=
$(srcdir)/build)
2014-07-02 20:01:09 -03:00
Daniel Zaoui 3c61dc1dba Eo: adapt benchmarks to Eo2. 2014-04-23 11:23:39 +03:00
Tom Hacohen 92cc33c46f Eo: EO_BASE_CLASS->EO_CLASS. 2014-04-10 04:20:21 +01:00
Jean-Philippe Andre dcca057213 Evas benchmark: Add .tgv extension to saved files
This will make the saver actually do something, instead of
just skipping the save as no extension = unknown format :)
2014-04-02 14:53:00 +09:00
Cedric BAIL b56d7bba60 evas: add benchmark for TGV loader and saver. 2014-04-01 22:00:14 +09:00
Cedric Bail 029087d004 eina: ignore benchmark binary. 2013-12-04 18:33:05 +09:00
Tom Hacohen 682c69764d Revert "eo: libs,test,benchmarks Eo_Class -> Eo"
This reverts commit 1714fe93f4.

We actually want this type, it makes things clearer.

Conflicts:
	src/tests/eo/function_overrides/function_overrides_inherit2.c
	src/tests/eo/function_overrides/function_overrides_simple.c
	src/tests/eo/suite/eo_test_class_simple.c
2013-09-27 16:40:32 +01:00
Jérémy Zurcher 1714fe93f4 eo: libs,test,benchmarks Eo_Class -> Eo
Conflicts:
	src/tests/eo/suite/eo_test_general.c
2013-09-27 14:01:46 +01:00
Cedric Bail b125a9afa6 gitignore: do not track generated files. 2013-09-26 15:51:25 +09:00
Cedric Bail 46ca166599 eina: improve benchmark logic to be able to choose which one to run.
Note: Eina_Hash benchmark is not really matching all our usecase.
We need a better tests that would expand the bench with a wider range
of key size. Basically giving a 3d dimension to our gnuplot. Don't know
if it is doable.
2013-09-26 15:51:25 +09:00
Carsten Haitzler f2b1039e05 fix examples makefiles to find Efl_Config.h 2013-04-25 02:08:49 +09:00