tone down memprool size chunks.
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 17 Jun 2012 01:44:00 +0000 (01:44 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 17 Jun 2012 01:44:00 +0000 (01:44 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@72251 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_edit.c
src/lib/edje_main.c

index 7175ada..3991542 100644 (file)
@@ -1021,7 +1021,7 @@ edje_edit_group_add(Evas_Object *obj, const char *name)
    //cd = _alloc(sizeof(Code));
    //codes = eina_list_append(codes, cd);
 #define EDIT_EMN(Tp, Sz, Ce)                                                   \
-   Ce->mp.Tp = eina_mempool_add("chained_mempool", #Tp, NULL, sizeof (Sz), 10);
+   Ce->mp.Tp = eina_mempool_add("chained_mempool", #Tp, NULL, sizeof (Sz), 8);
 
    EDIT_EMN(RECTANGLE, Edje_Part_Description_Common, de);
    EDIT_EMN(TEXT, Edje_Part_Description_Text, de);
index 98b4647..56cf823 100644 (file)
@@ -70,7 +70,7 @@ edje_init(void)
 
    _edje_real_part_mp = eina_mempool_add("chained_mempool",
                                         "Edje_Real_Part", NULL,
-                                        sizeof (Edje_Real_Part), 128);
+                                        sizeof (Edje_Real_Part), 32);
    if (!_edje_real_part_mp)
      {
        ERR("Mempool for Edje_Real_Part cannot be allocated.");
@@ -79,7 +79,7 @@ edje_init(void)
 
    _edje_real_part_state_mp = eina_mempool_add("chained_mempool",
                                               "Edje_Real_Part_State", NULL,
-                                              sizeof (Edje_Real_Part_State), 256);
+                                              sizeof (Edje_Real_Part_State), 32);
    if (!_edje_real_part_state_mp)
      {
        ERR("Mempool for Edje_Real_Part_State cannot be allocated.");