infinispan/infinispan — pull request #2639 by anistor (2014-06-13 17:34:44+00:00)
Title: ISPN-4400 Takes a long time to start up all clusters which has a lot of ...

...segments

This is mainly caused by the myriad of internal copies performed by the CopyOnWriteArraySet used in InboundTransferTask for tracking the segments being requested during ST. This collection is updated way too frequently if we have a large number of segments. It seems that using a simple HashMap and doing external synchronization works better both in terms of time and memory.

Jira: https://issues.jboss.org/browse/ISPN-4400