[jbosscache-commits] JBoss Cache SVN: r6474 - benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/src/org/cachebench/cachewrappers.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Thu Jul 31 12:50:36 EDT 2008


Author: manik.surtani at jboss.com
Date: 2008-07-31 12:50:36 -0400 (Thu, 31 Jul 2008)
New Revision: 6474

Modified:
   benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/src/org/cachebench/cachewrappers/JBossCache300Wrapper.java
Log:
More efficient flat map

Modified: benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/src/org/cachebench/cachewrappers/JBossCache300Wrapper.java
===================================================================
--- benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/src/org/cachebench/cachewrappers/JBossCache300Wrapper.java	2008-07-31 16:22:57 UTC (rev 6473)
+++ benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/src/org/cachebench/cachewrappers/JBossCache300Wrapper.java	2008-07-31 16:50:36 UTC (rev 6474)
@@ -8,6 +8,7 @@
 import org.jboss.cache.Fqn;
 import org.jboss.cache.config.Option;
 import org.jboss.cache.util.Caches;
+import org.jboss.cache.util.Caches.HashKeySelector;
 
 import java.util.List;
 import java.util.Map;
@@ -37,7 +38,7 @@
       if (FLAT)
       {
          log.info("Using FLAT MAP wrapper");
-         flatCache = Caches.asMap(cache);
+         flatCache = Caches.asPartitionedMap(cache.getRoot(), new HashKeySelector(128));
       }
    }
 




More information about the jbosscache-commits mailing list