diff options
author | Carsten Haitzler <raster@rasterman.com> | 2012-06-17 01:51:27 +0000 |
---|---|---|
committer | Carsten Haitzler <raster@rasterman.com> | 2012-06-17 01:51:27 +0000 |
commit | c94a5d5a4ab53770c1fc6a43c117af9042a133b2 (patch) | |
tree | 96bab2c9f381a31439dc0b399957df3ae354c495 | |
parent | cd57af5578dbe49ebf3eb89d9634d67fce5e7101 (diff) | |
download | eina-c94a5d5a4ab53770c1fc6a43c117af9042a133b2.tar.gz |
tone down mempool chunk sizes
SVN revision: 72252
-rw-r--r-- | src/lib/eina_list.c | 4 | ||||
-rw-r--r-- | src/lib/eina_matrixsparse.c | 4 | ||||
-rw-r--r-- | src/lib/eina_model.c | 4 | ||||
-rw-r--r-- | src/lib/eina_object.c | 6 | ||||
-rw-r--r-- | src/lib/eina_quadtree.c | 4 | ||||
-rw-r--r-- | src/lib/eina_rectangle.c | 4 | ||||
-rw-r--r-- | src/lib/eina_simple_xml_parser.c | 4 | ||||
-rw-r--r-- | src/lib/eina_value.c | 4 |
8 files changed, 17 insertions, 17 deletions
diff --git a/src/lib/eina_list.c b/src/lib/eina_list.c index c85855f..ea5dfb9 100644 --- a/src/lib/eina_list.c +++ b/src/lib/eina_list.c @@ -468,7 +468,7 @@ eina_list_init(void) choice = tmp; _eina_list_mp = eina_mempool_add - (choice, "list", NULL, sizeof(Eina_List), 320); + (choice, "list", NULL, sizeof(Eina_List), 128); if (!_eina_list_mp) { ERR("ERROR: Mempool for list cannot be allocated in list init."); @@ -476,7 +476,7 @@ eina_list_init(void) } _eina_list_accounting_mp = eina_mempool_add - (choice, "list_accounting", NULL, sizeof(Eina_List_Accounting), 80); + (choice, "list_accounting", NULL, sizeof(Eina_List_Accounting), 16); if (!_eina_list_accounting_mp) { ERR( diff --git a/src/lib/eina_matrixsparse.c b/src/lib/eina_matrixsparse.c index 59cd66b..9575cec 100644 --- a/src/lib/eina_matrixsparse.c +++ b/src/lib/eina_matrixsparse.c @@ -870,7 +870,7 @@ eina_matrixsparse_init(void) "matrixsparse_cell", NULL, sizeof (Eina_Matrixsparse_Cell), - 120); + 32); if (!_eina_matrixsparse_cell_mp) { ERR( @@ -879,7 +879,7 @@ eina_matrixsparse_init(void) } _eina_matrixsparse_row_mp = eina_mempool_add - (choice, "matrixsparse_row", NULL, sizeof (Eina_Matrixsparse_Row), 120); + (choice, "matrixsparse_row", NULL, sizeof (Eina_Matrixsparse_Row), 32); if (!_eina_matrixsparse_row_mp) { ERR( diff --git a/src/lib/eina_model.c b/src/lib/eina_model.c index ae06c1b..a0cc6de 100644 --- a/src/lib/eina_model.c +++ b/src/lib/eina_model.c @@ -211,7 +211,7 @@ _eina_model_inner_mp_get(int size) imp->refcount = 0; imp->mempool = eina_mempool_add(_eina_model_mp_choice, - "Eina_Model_Inner_Mp", NULL, size, 128); + "Eina_Model_Inner_Mp", NULL, size, 16); if (!imp->mempool) { free(imp); @@ -3014,7 +3014,7 @@ eina_model_init(void) _eina_model_mp_choice = strdup(choice); _eina_model_mp = eina_mempool_add - (_eina_model_mp_choice, "model", NULL, sizeof(Eina_Model), 320); + (_eina_model_mp_choice, "model", NULL, sizeof(Eina_Model), 32); if (!_eina_model_mp) { ERR("Mempool for model cannot be allocated in model init."); diff --git a/src/lib/eina_object.c b/src/lib/eina_object.c index afa2ab9..edd96b0 100644 --- a/src/lib/eina_object.c +++ b/src/lib/eina_object.c @@ -467,7 +467,7 @@ eina_object_init(void) } _eina_class_mp = eina_mempool_add("chained_mempool", "class", - NULL, sizeof (Eina_Class), 64); + NULL, sizeof (Eina_Class), 16); if (!_eina_class_mp) { ERR("ERROR: Mempool for Eina_Class cannot be allocated in object init."); @@ -475,7 +475,7 @@ eina_object_init(void) } _eina_top_mp = eina_mempool_add("chained_mempool", "top", - NULL, sizeof (Eina_Class_Top), 64); + NULL, sizeof (Eina_Class_Top), 16); if (!_eina_top_mp) { ERR("ERROR: Mempool for Eina_Class_Top cannot be allocated in object init."); @@ -483,7 +483,7 @@ eina_object_init(void) } _eina_range_mp = eina_mempool_add("chained_mempool", "range", - NULL, sizeof (Eina_Range), 64); + NULL, sizeof (Eina_Range), 16); if (!_eina_range_mp) { ERR("ERROR: Mempool for Eina_Class_Top cannot be allocated in object init."); diff --git a/src/lib/eina_quadtree.c b/src/lib/eina_quadtree.c index daf03d0..f0a2dd4 100644 --- a/src/lib/eina_quadtree.c +++ b/src/lib/eina_quadtree.c @@ -913,9 +913,9 @@ eina_quadtree_init(void) choice = tmp; _eina_quadtree_items_mp = eina_mempool_add(choice, "QuadTree Item", NULL, - sizeof (Eina_QuadTree_Item), 320); + sizeof (Eina_QuadTree_Item), 32); eina_quadtree_root_mp = eina_mempool_add(choice, "QuadTree Root", NULL, - sizeof (Eina_QuadTree_Root), 32); + sizeof (Eina_QuadTree_Root), 8); return EINA_TRUE; } diff --git a/src/lib/eina_rectangle.c b/src/lib/eina_rectangle.c index 7f0a619..cfa5ac2 100644 --- a/src/lib/eina_rectangle.c +++ b/src/lib/eina_rectangle.c @@ -275,7 +275,7 @@ eina_rectangle_init(void) _eina_rectangle_alloc_mp = eina_mempool_add (choice, "rectangle-alloc", NULL, - sizeof(Eina_Rectangle_Alloc) + sizeof(Eina_Rectangle), 1024); + sizeof(Eina_Rectangle_Alloc) + sizeof(Eina_Rectangle), 64); if (!_eina_rectangle_alloc_mp) { ERR("Mempool for rectangle cannot be allocated in rectangle init."); @@ -283,7 +283,7 @@ eina_rectangle_init(void) } _eina_rectangle_mp = eina_mempool_add - (choice, "rectangle", NULL, sizeof(Eina_Rectangle), 256); + (choice, "rectangle", NULL, sizeof(Eina_Rectangle), 32); if (!_eina_rectangle_mp) { ERR("Mempool for rectangle cannot be allocated in rectangle init."); diff --git a/src/lib/eina_simple_xml_parser.c b/src/lib/eina_simple_xml_parser.c index 9a6c649..ba42a9e 100644 --- a/src/lib/eina_simple_xml_parser.c +++ b/src/lib/eina_simple_xml_parser.c @@ -225,7 +225,7 @@ eina_simple_xml_init(void) _eina_simple_xml_tag_mp = eina_mempool_add (choice, "simple_xml_tag", NULL, - sizeof(Eina_Simple_XML_Node_Tag), 320); + sizeof(Eina_Simple_XML_Node_Tag), 32); if (!_eina_simple_xml_tag_mp) { ERR("Mempool for simple_xml_tag cannot be allocated in init."); @@ -234,7 +234,7 @@ eina_simple_xml_init(void) _eina_simple_xml_attribute_mp = eina_mempool_add (choice, "simple_xml_attribute", NULL, - sizeof(Eina_Simple_XML_Attribute), 80); + sizeof(Eina_Simple_XML_Attribute), 8); if (!_eina_simple_xml_attribute_mp) { ERR("Mempool for simple_xml_attribute cannot be allocated in init."); diff --git a/src/lib/eina_value.c b/src/lib/eina_value.c index 5f76bbf..9b132b7 100644 --- a/src/lib/eina_value.c +++ b/src/lib/eina_value.c @@ -4852,7 +4852,7 @@ _eina_value_inner_mp_get(int size) imp->references = 0; imp->mempool = eina_mempool_add(_eina_value_mp_choice, - "Eina_Value_Inner_Mp", NULL, size, 128); + "Eina_Value_Inner_Mp", NULL, size, 16); if (!imp->mempool) { free(imp); @@ -4962,7 +4962,7 @@ eina_value_init(void) _eina_value_mp_choice = strdup(choice); _eina_value_mp = eina_mempool_add - (_eina_value_mp_choice, "value", NULL, sizeof(Eina_Value), 320); + (_eina_value_mp_choice, "value", NULL, sizeof(Eina_Value), 32); if (!_eina_value_mp) { ERR("Mempool for value cannot be allocated in value init."); |