Github user melix commented on a diff in the pull request: https://github.com/apache/groovy/pull/566#discussion_r166246347 --- Diff: src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java --- @@ -12026,6 +12026,9 @@ public static boolean equals(List left, List right) { if (left == right) { return true; } + if( left.getClass().getAnnotation(IgnoreDefaultEqualsAndToString.class)!=null && right.getClass().getAnnotation(IgnoreDefaultEqualsAndToString.class)!=null ) { --- End diff -- -1 to this until we have a better idea on the impact on performance. Calling `getClass().getAnnotation(...)` is **very** expensive.
---