projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
359657f
)
edje: reduce memory usage by 57Kb.
author
Cedric BAIL
<cedric@osg.samsung.com>
Fri, 6 May 2016 23:18:51 +0000
(16:18 -0700)
committer
Cedric BAIL
<cedric@osg.samsung.com>
Fri, 6 May 2016 23:18:51 +0000
(16:18 -0700)
If we do a copy of a string living in the object we are storing in the
same eina_hash, it is obviously better to use the direct pointer version.
src/lib/edje/edje_util.c
patch
|
blob
|
history
diff --git
a/src/lib/edje/edje_util.c
b/src/lib/edje/edje_util.c
index
d81408a
..
4ecb521
100644
(file)
--- a/
src/lib/edje/edje_util.c
+++ b/
src/lib/edje/edje_util.c
@@
-180,7
+180,7
@@
_edje_class_member_add(Edje *ed, Eina_Hash **ghash, const char *class)
er->ed = ed;
EINA_REFCOUNT_INIT(er);
- eina_hash_add(members, &er->ed, er);
+ eina_hash_
direct_
add(members, &er->ed, er);
}
else
{