summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2018-06-22 09:38:03 -0400
committerChris Michael <cp.michael@samsung.com>2018-06-22 09:38:03 -0400
commitc9979ca4c0496006147c9036d439c1840f14d76e (patch)
tree553d305bded97bc131e1c3e2c5e6fc6a8d3cf277
parent69b5d67367b8ae16d6e98734d2b07e40725d4a0f (diff)
genlist: Don't search for an item we know we won't find
Summary: We track list presence already, so we can just do a boolean test instead of an O(n) lookup. Depends on D6349 Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6350
-rw-r--r--src/lib/elementary/elm_genlist.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c
index 1d8ac96203..b476be8287 100644
--- a/src/lib/elementary/elm_genlist.c
+++ b/src/lib/elementary/elm_genlist.c
@@ -7710,7 +7710,10 @@ _item_filtered_get(Elm_Gen_Item *it)
7710 l = eina_list_data_find_list(sd->filter_queue, it); 7710 l = eina_list_data_find_list(sd->filter_queue, it);
7711 if (l) 7711 if (l)
7712 sd->filter_queue = eina_list_remove_list(sd->filter_queue, l); 7712 sd->filter_queue = eina_list_remove_list(sd->filter_queue, l);
7713 l = eina_list_data_find_list(sd->queue, it); 7713 if (it->item->queued)
7714 l = eina_list_data_find_list(sd->queue, it);
7715 else
7716 l = NULL;
7714 if (l) 7717 if (l)
7715 { 7718 {
7716 sd->queue = eina_list_remove_list(sd->queue, l); 7719 sd->queue = eina_list_remove_list(sd->queue, l);