hazelcast/hazelcast — pull request #1471 by pveentjer (2013-12-31 09:22:36+00:00)
Title: Improves performance of PartitionView.getReplicaAddress

In the old implementation an AtomicReferenceArray was used which popped up in the profiler to
consume 33% of the time in my own branch. This fixes the issue by changing it to an array
stored in a volatile field, and where the whole array is updated using a cas.

Bit more expensive for writing, but writes don't happen often.