Are there any libraries with concurrent collections that are faster than the standard java.util.concurrent
package? I tried to find such a library but couldn’t find it. Personally, I’m interested in the thread-safe ArrayList
, which is faster than the standard CopyOnWriteArrayList
.
Answer 1, authority 100%
I have never tested it, try this method:
Collections.synchronizedList (new ArrayList & lt;? & gt; ())