Github user franz1981 commented on a diff in the pull request:
https://github.com/apache/activemq-artemis/pull/2434#discussion_r239486300
--- Diff:
artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/BindingsImpl.java
---
@@ -53,7 +54,13 @@
private final Map<SimpleString, Integer> routingNamePositions = new
ConcurrentHashMap<>();
- private final Map<Long, Binding> bindingsMap = new
ConcurrentHashMap<>();
+ private final Map<Long, Binding> bindingsIdMap = new
ConcurrentHashMap<>();
--- End diff --
Why not using a primitive version of this map? We have somewhere
LongConcurrentHashMap (used into the journal too)
---