rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=46ec920e868d2212dffe5d6c9426fc798398cbaf

commit 46ec920e868d2212dffe5d6c9426fc798398cbaf
Author: Vyacheslav Reutskiy <[email protected]>
Date:   Fri Jan 27 10:09:18 2017 +0200

    resource mananger: increase the groups lookup
    
    Previously groups list was lookup 3 times, first for sort, next -
    create Group2 objects and the third remove the cleanup strings.
    We know and we sure that edje_file_collection_get return a list of
    stringshares. So I merge all 3 actions to one list lookup.
    
    @optimize
    
    Change-Id: I5e9d59ade31f9f0409d591ed208c8f5600133c6d
---
 src/bin/resource_manager/resource_manager_load.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/bin/resource_manager/resource_manager_load.c 
b/src/bin/resource_manager/resource_manager_load.c
index b624dc5..9db780a 100644
--- a/src/bin/resource_manager/resource_manager_load.c
+++ b/src/bin/resource_manager/resource_manager_load.c
@@ -662,13 +662,12 @@ _groups_load(Project *pro)
 
    assert(collections != NULL);
 
-   collections = eina_list_sort(collections, eina_list_count(collections), 
(Eina_Compare_Cb) strcmp);
-   EINA_LIST_FOREACH(collections, l, group_name)
+   EINA_LIST_FREE(collections, group_name)
      {
         if (!strcmp(group_name, EFLETE_INTERNAL_GROUP_NAME)) continue;
         _group_add(pro, group_name);
+        eina_stringshare_del(group_name);
      }
-   edje_file_collection_list_free(collections);
 
    EINA_LIST_FOREACH(pro->RM.groups, l, res)
      _group_load(pro, res);

-- 


Reply via email to