diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2019-06-15 09:19:20 +0100 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2019-06-15 09:19:20 +0100 |
commit | b5ed76ba9f22ea659e9e6a3daa32c68354920455 (patch) | |
tree | 6384a977de0e27c58bcd52faecfc55d6b00eb2ab /src/lib/evas | |
parent | 7c081c691b983e93693557cc39b06883f1ab142a (diff) | |
download | efl-b5ed76ba9f22ea659e9e6a3daa32c68354920455.tar.gz |
evas - pointer in get - dont On walk inlist but O1 jump to last
to walk inreverse we need to jump to last first then walk backwards...
what we were doing is calling eina_inlist_last() which is defined to
walk rather than that using list->last ... this totally got rid of
_evas_event_object_list_raw_in_get() from my perf list ... and i was
wondering how it got there to start with.
this is such an obvious optimization...
Diffstat (limited to 'src/lib/evas')
-rw-r--r-- | src/lib/evas/canvas/evas_events.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_events.c b/src/lib/evas/canvas/evas_events.c index ca2a903ae4..19bcf2811c 100644 --- a/src/lib/evas/canvas/evas_events.c +++ b/src/lib/evas/canvas/evas_events.c @@ -379,7 +379,7 @@ _evas_event_object_list_raw_in_get(Evas *eo_e, Eina_List *in, spaces++; if (ilist) { - for (obj = _EINA_INLIST_CONTAINER(obj, eina_inlist_last(ilist)); + for (obj = _EINA_INLIST_CONTAINER(obj, ilist->last); obj; obj = _EINA_INLIST_CONTAINER(obj, EINA_INLIST_GET(obj)->prev)) { |