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...
This commit is contained in:
Carsten Haitzler 2019-06-15 09:19:20 +01:00
parent 7c081c691b
commit b5ed76ba9f
1 changed files with 1 additions and 1 deletions

View File

@ -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))
{