franz1981 commented on a change in pull request #3363:
URL: https://github.com/apache/activemq-artemis/pull/3363#discussion_r532889360
##########
File path:
artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/DuplicateIDCacheImpl.java
##########
@@ -69,11 +93,24 @@ public DuplicateIDCacheImpl(final SimpleString address,
ids = new ArrayList<>(size);
+ cachedBoxedInts = boxedInts(size);
Review comment:
I've implemented another version using a bespoke single-writer
concurrent primitive valued hash map but...performance are a bit regressed
(`ConcurrentHashMap` is still a nice piece of engineering, but I still need to
understand why...)
And memory footprint isn't that great too (because of the small load-factor
to save collisions): ~186 MB (that's similar to optimized boxed types)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]