netstar pushed a commit to branch master. http://git.enlightenment.org/apps/evisum.git/commit/?id=3603f7415e528c808e86b3f2d6e7116e8814a507
commit 3603f7415e528c808e86b3f2d6e7116e8814a507 Author: Alastair Poole <nets...@gmail.com> Date: Sun Mar 14 12:26:28 2021 +0000 cache: ok. --- src/bin/ui/ui_cache.c | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/src/bin/ui/ui_cache.c b/src/bin/ui/ui_cache.c index 85d2945..f15f6ce 100644 --- a/src/bin/ui/ui_cache.c +++ b/src/bin/ui/ui_cache.c @@ -58,32 +58,14 @@ evisum_ui_item_cache_item_get(Evisum_Ui_Cache *cache) { Eina_List *l, *l_next; Item_Cache *it; - Eina_Bool clean; - int i = 0, n = eina_list_count(cache->inactive); - - clean = (n > 10) ? 1 : 0; EINA_LIST_FOREACH_SAFE(cache->inactive, l, l_next, it) { cache->inactive = eina_list_remove_list(cache->inactive, l); - if ((clean) && (i < 8)) - { - cache->pending = eina_list_prepend(cache->pending, it->obj); - free(it); - i++; - } - else - { - cache->active = eina_list_prepend(cache->active, it); - break; - } - it = NULL; + cache->active = eina_list_prepend(cache->active, it); + return it; } - if (clean) - evisum_ui_item_cache_pending_del(cache); - if (it) return it; - it = calloc(1, sizeof(Item_Cache)); if (it) { --