[jboss-dev-forums] [Design the new POJO MicroContainer] - CopyOnWriteArraySet - JBCL-20
adrian@jboss.org
do-not-reply at jboss.com
Thu Jul 24 05:54:37 EDT 2008
https://jira.jboss.org/jira/browse/JBCL-20
I was seeing a lot of time spent in CopyOnWriteArraySet when checking
blacklisting in the classloader.
The reason is that the class isn't intended for large data sets,
in fact it uses a CopyOnWriteArrayList underneath and does linear traversals.
I've changed the usage to a ConcurrentHashMap where I effectively
only use the key side.
It might be an idea to add a ConcurrentSet implementation to common-core
that is implemented on top of a ConcurrentHashMap?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166358#4166358
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166358
More information about the jboss-dev-forums
mailing list