cshannon commented on PR #2252:
URL: https://github.com/apache/activemq/pull/2252#issuecomment-5097045776

   Have you looked into using an 
[async](https://github.com/ben-manes/caffeine/blob/master/caffeine/src/main/java/com/github/benmanes/caffeine/cache/AsyncCache.java)
 cache? With everything being done with computeIfPresent and under lock of the 
cache there could be a boost by using that as entries for different keys can be 
operated on independently. You can configure a thread pool and in the future 
Caffeine may support virtual threads (it doesn't yet). I haven't looked at your 
benchmark stuff yet to see if it could compare sync vs async effectively


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to