[prev in list] [next in list] [prev in thread] [next in thread]
List: enlightenment-svn
Subject: E SVN: cedric IN trunk/PROTO/eina/src: modules/mp/chained_pool tests
From: "Enlightenment SVN" <no-reply () enlightenment ! org>
Date: 2008-09-30 12:55:33
Message-ID: 20080930125533.59A49118075 () e2 ! enlightenment ! org
[Download RAW message or body]
Log:
Fix chained mempool allocator.
Author: cedric
Date: 2008-09-30 05:55:33 -0700 (Tue, 30 Sep 2008)
New Revision: 36355
Modified:
trunk/PROTO/eina/src/modules/mp/chained_pool/eina_chained_mempool.c \
trunk/PROTO/eina/src/tests/eina_bench_mempool.c
Modified: trunk/PROTO/eina/src/modules/mp/chained_pool/eina_chained_mempool.c
===================================================================
--- trunk/PROTO/eina/src/modules/mp/chained_pool/eina_chained_mempool.c 2008-09-30 \
12:55:06 UTC (rev 36354)
+++ trunk/PROTO/eina/src/modules/mp/chained_pool/eina_chained_mempool.c 2008-09-30 \
12:55:33 UTC (rev 36355) @@ -92,6 +92,7 @@
if (p->base)
{
pool->first = eina_inlist_remove(pool->first, EINA_INLIST_GET(p));
+ pool->first = eina_inlist_append(pool->first, EINA_INLIST_GET(p));
break;
}
}
@@ -128,6 +129,7 @@
item_alloc = ((pool->item_size + sizeof(void *) - 1) / sizeof(void *)) * \
sizeof(void *); psize = item_alloc * pool->pool_size;
// look 4 pool
+
EINA_INLIST_ITER_NEXT(pool->first, p)
{
// pool mem base
Modified: trunk/PROTO/eina/src/tests/eina_bench_mempool.c
===================================================================
--- trunk/PROTO/eina/src/tests/eina_bench_mempool.c 2008-09-30 12:55:06 UTC (rev \
36354)
+++ trunk/PROTO/eina/src/tests/eina_bench_mempool.c 2008-09-30 12:55:33 UTC (rev \
36355) @@ -106,11 +106,11 @@
void
eina_bench_mempool(Eina_Benchmark *bench)
{
-/* eina_benchmark_register(bench, "chained mempool", \
EINA_BENCHMARK(eina_mempool_chained_mempool), 10, 100, 10); */
- eina_benchmark_register(bench, "pass through", \
EINA_BENCHMARK(eina_mempool_pass_through), 10, 10000, 100);
- eina_benchmark_register(bench, "fixed bitmap", \
EINA_BENCHMARK(eina_mempool_fixed_bitmap), 10, 10000, 100); + \
eina_benchmark_register(bench, "chained mempool", \
EINA_BENCHMARK(eina_mempool_chained_mempool), 10, 1000, 10); + \
eina_benchmark_register(bench, "pass through", \
EINA_BENCHMARK(eina_mempool_pass_through), 10, 1000, 10); + \
eina_benchmark_register(bench, "fixed bitmap", \
EINA_BENCHMARK(eina_mempool_fixed_bitmap), 10, 1000, 10); #ifdef EINA_EMEMOA_SUPPORT
- eina_benchmark_register(bench, "ememoa fixed", \
EINA_BENCHMARK(eina_mempool_ememoa_fixed), 10, 10000, 100);
- eina_benchmark_register(bench, "ememoa unknown", \
EINA_BENCHMARK(eina_mempool_ememoa_unknown), 10, 10000, 100); + \
eina_benchmark_register(bench, "ememoa fixed", \
EINA_BENCHMARK(eina_mempool_ememoa_fixed), 10, 1000, 10); + \
eina_benchmark_register(bench, "ememoa unknown", \
EINA_BENCHMARK(eina_mempool_ememoa_unknown), 10, 1000, 10); #endif
}
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-svn mailing list
enlightenment-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic