3 Replies Latest reply on Jul 24, 2008 7:33 AM by Ales Justin

    CopyOnWriteArraySet - JBCL-20

    Adrian Brock Master


      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?