changed striping to num_threads. 176/100 ns/op

This commit is contained in:
nathan 2015-02-22 23:20:07 +01:00
parent b42eb86531
commit 4eef758e89

View File

@ -59,7 +59,7 @@ public class SubscriptionManager {
public SubscriptionManager(int numberOfThreads) {
this.MAP_STRIPING = numberOfThreads/2;
this.MAP_STRIPING = numberOfThreads;
this.LOAD_FACTOR = 0.8f;
this.subscriptionsPerMessageSingle = new ConcurrentHashMap<Class<?>, Collection<Subscription>>(4, this.LOAD_FACTOR, this.MAP_STRIPING);