maniksurtani/infinispan — comment on commit 682eedd9bb6c69aeacd159899cefb0d617661cdd
File: core/src/main/java/org/infinispan/interceptors/locking/OptimisticLockingInterceptor.java line 235
By Sanne:

I think it should be possible - not necessarily this weekend - to develop a one-pass sorting strategy which operates on the array and doesn't necessarily require this hashSet preparation which looks terrible.
In other words: since we require sort && uniqueness of keys, the two are very much compatible to be applied together.. just I guess the commands which lock multiple keys make this quite complex.