efl/src/lib/ecore_evas
Jean Guyomarc'h 34d9f20706 eina: remove usless newline
Summary:
ecore_evas: remove debug

eina: unregister log level when done with

Fixes a constant memory leak.

eina: introduce EINA_HOT and EINA_COLD

These attributes respectivelly expand to __attribute__ ((hot)) and
__attribute__ ((cold)) when available. They allow to mark functions are
being hot/cold (frequently used or not) as well as to qualify labels
within a function (likely/unlikely branches).

eo: speed-up generated calls by removing call cache

The call cache needed to by thread-local, to avoid concurrency issues.
Problem with TLS is that is adds an extra overhead, which appears to be
greater than the optimization the cache provides.

Op is naturally atomic, because it is an unsigned integer. As such, it
cannot be tempered with while another thread is reading it. When
entering the generated function, the first operation done is reading
'op'. If we have concurrency, we will have access sequences returning
either EFL_NOOP or a VALID op, because 'op' is not set until the very
end of the function, when everything has been computed. As such, we now
use the 'op' atomic integer to instore a lock-free/wait-free mechanism,
which allows to drop the TLS nature of the cache, speeding up the access
to the cache, and therefore making functions execute faster.

We don't test anymore the generation count. This can be put as a
limitation. If means that if you call efl_object_shutdown() and
re-initialize it later with different data, opcodes will be invalid.
I am not sure there is any usecase for this to ever happen.
We could move all the caches in a dedicated section, that can be
overwritten after a call to efl_object_shutdown(), but I am not sure it
will be very portable.

Benchmark: mean over 3 executions of
   ELM_TEST_AUTOBOUNCE=100 time elementary_test -to genlist

```
                     BEFORE               AFTER
------------------------------------------------------------
time (ns)            11114111647.0        9147676220.0
frames               2872.3333333333335   2904.6666666666665
time per frame (ns)  3869364.6666666665   3149535.3333333335
user time (s)        11.096666666666666   9.22
cpu (%)              22.666666666666668   18.333333333333332
```

Ref T6580

Reviewers: raster, cedric

Subscribers: cedric, jpeg

Maniphest Tasks: T6580

Differential Revision: https://phab.enlightenment.org/D5738
2018-01-16 17:50:46 +09:00
..
Ecore_Evas.h ecore: remove doxygen warning messages 2017-10-18 19:24:28 +09:00
Ecore_Evas_Types.h ecore_evas: define the predefine for wl2 instead of wayland 2017-08-12 15:30:53 +02:00
ecore_evas.c efl: remove _MSC_VER (Visual Studio macro) usage in source code 2018-01-04 12:59:47 -08:00
ecore_evas_buffer.c ecore-evas: block buffer canvas events during deletion 2017-06-16 12:23:07 -04:00
ecore_evas_buffer.h ecore-evas: add flag for buffer canvas to prevent deadlock in pixels_get 2017-03-31 14:57:25 -04:00
ecore_evas_cocoa.h ecore_cocoa: add support for system cursors 2015-12-01 12:15:31 -08:00
ecore_evas_deprecated.c
ecore_evas_drm.h
ecore_evas_ews.c efl: Reset ecore event types on init 2017-12-19 11:14:37 +09:00
ecore_evas_extn.c efl: Reset ecore event types on init 2017-12-19 11:14:37 +09:00
ecore_evas_extn.h
ecore_evas_module.c ecore_evas: use access() instead of stat() 2017-11-23 15:31:01 -08:00
ecore_evas_private.h eina: remove usless newline 2018-01-16 17:50:46 +09:00
ecore_evas_util.c efl: Use Eina.Size2D for size hint combined min 2017-09-18 16:33:33 +09:00
ecore_evas_wayland.h ecore-evas-wayland: Add aux_hint functions to Wayland Interface 2017-06-13 12:57:17 -04:00
ecore_evas_win32.h
ecore_evas_x11.h ecore_evas: refactor VNC as an Eina Module. 2016-10-28 09:56:47 -07:00