summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-06-15 09:19:20 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-06-15 09:19:20 +0100
commitb5ed76ba9f22ea659e9e6a3daa32c68354920455 (patch)
tree6384a977de0e27c58bcd52faecfc55d6b00eb2ab
parent7c081c691b983e93693557cc39b06883f1ab142a (diff)
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...
-rw-r--r--src/lib/evas/canvas/evas_events.c2
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,
379 spaces++; 379 spaces++;
380 if (ilist) 380 if (ilist)
381 { 381 {
382 for (obj = _EINA_INLIST_CONTAINER(obj, eina_inlist_last(ilist)); 382 for (obj = _EINA_INLIST_CONTAINER(obj, ilist->last);
383 obj; 383 obj;
384 obj = _EINA_INLIST_CONTAINER(obj, EINA_INLIST_GET(obj)->prev)) 384 obj = _EINA_INLIST_CONTAINER(obj, EINA_INLIST_GET(obj)->prev))
385 { 385 {