changed striping to num_threads. 176/100 ns/op
This commit is contained in:
parent
b42eb86531
commit
4eef758e89
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user