groovy/groovy-core — pull request #92 by upcrob (2012-12-24 16:33:57+00:00)
Title: Update src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java

I propose updating the implementation of the method, minus(Set self, Collection removeMe) per GROOVY-5513. This should reduce the running time from O(m*n) to O(n) since we are now iterating over the Collection of objects to remove, rather than both the input Collection and Set to remove from.
There was some concern about the ordering between the input and resultant sets. I would imagine, however, that if the input Set has an inherent order (eg. LinkedHashSet), then it's remove() method should take this ordering into account in its implementation.