java-driver
java-driver copied to clipboard
3.x: Implement lazy replica shuffling
It is followup for: https://github.com/scylladb/java-driver/pull/427 According to https://github.com/scylladb/cassandra-stress/issues/38#issuecomment-2621495909 there is still difference between Shuffled and not shuffled replicas, which made me think that array shuffling operations are very expensive.
Solution to that would be lazy shuffling, when original replica list is preserved as is while next item is being randomizes only when it is needed. We need to do that and see if there is performance difference.