raster pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=39e3a06fd5495e124dd66646faf21a0b0876e3ce
commit 39e3a06fd5495e124dd66646faf21a0b0876e3ce Author: Carsten Haitzler (Rasterman) <[email protected]> Date: Sun Aug 21 11:37:22 2016 +0900 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 --- src/lib/edje/edje_data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/edje/edje_data.c b/src/lib/edje/edje_data.c index 0541844..b9a0ee2 100644 --- a/src/lib/edje/edje_data.c +++ b/src/lib/edje/edje_data.c @@ -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; } --
