edje - cut another 120k or so off memory usage by using direct hash add

so every collection we add to the eina has of collections... we just
did eina_hash_add - this isn't quite good. because we use eina_file
and mmap the edje file. we COULd use the strings straigh fromt he edje
filer dictionary and not actually allocate private heap memory - thus
sharing all those strings. this was silly, and this saves about
another 120k of memory with the default theme as it has about 1500 or
so collections in it... and these strings add up fast.

@optimize
This commit is contained in:
Carsten Haitzler 2016-08-21 11:37:22 +09:00
parent 419f84907b
commit 39e3a06fd5
1 changed files with 1 additions and 1 deletions

View File

@ -647,7 +647,7 @@ _edje_eina_hash_add_alloc(Eina_Hash *hash,
if (!hash)
return NULL;
eina_hash_add(hash, key, data);
eina_hash_direct_add(hash, key, data);
return hash;
}