activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Burton <>
Subject “Usage" and other performance improvements by avoiding CopyOnWriteArrayList.
Date Sat, 02 May 2015 22:08:11 GMT
I’ve found 3 places where CopyOnWriteArrayList was being used and causing
significant performance impact O(N^2) when using large numbers of queues.

Could I get feedback on these 3 changes?

In both of these situations, I think a Set is a better idea than a List.
First, it’s faster.  Second, why would we want to cousin something twice?
That’s the only reason I would think a List would be used instead of a Set.


Location: *San Francisco, CA*
… or check out my Google+ profile

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message