Eina: Micro-optimize eina_main_loop_is
authorJean-Philippe Andre <jp.andre@samsung.com>
Fri, 6 Nov 2015 09:34:50 +0000 (18:34 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 10 Nov 2015 07:12:21 +0000 (16:12 +0900)
commitd99ca361de44136bc105c11bc089ec9dbf420279
tree0b7b167146ae586b5eda3df17432e5c2a7179a18
parent35056500467355e32e886b1f2a95b040f11fe2f7
Eina: Micro-optimize eina_main_loop_is

This is useful when Eo calls it to get the current frame stack.
This improves the performance of this function by ~50% which meant
from ~3% total CPU time to ~1.5% CPU time (if called at each eo_do).

Now this patch is a bit irrelevant since eo uses __thread instead.

This optimization is still useful for evas_eglGetCurrentXXX.
src/lib/eina/eina_main.c