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

@Sanne We're not just sorting, we're also mapping commands to keys. We could try to add the keys to an ArrayList, sort the list and then remove duplicates from it. It should be a little more efficient, but I don't think it would make a significant difference.