forked from enlightenment/efl
eet: Don't add duplicate lists to eet freelist
The eet freelist code de-duplicates pointers, so passing duplicates is just fine, however it does waste time doing the de-dup. We know when we have a duplicate anyway, so save the time. Differential Revision: https://phab.enlightenment.org/D7278 Signed-off-by: Derek Foreman <derek.foreman.samsung@gmail.com>
This commit is contained in:
parent
65de934dcf
commit
cd44bdeac6
|
@ -3843,9 +3843,12 @@ eet_data_get_list(Eet_Free_Context *context,
|
|||
|
||||
if (edd)
|
||||
{
|
||||
void *oldlist = list;
|
||||
|
||||
list = edd->func.list_append(list, data_ret);
|
||||
*ptr = list;
|
||||
_eet_freelist_list_add(context, ptr);
|
||||
if (oldlist != list)
|
||||
_eet_freelist_list_add(context, ptr);
|
||||
}
|
||||
else
|
||||
eet_node_list_append(*((Eet_Node **)data), echnk->name, data_ret);
|
||||
|
|
Loading…
Reference in New Issue