Paul King resolved GROOVY-6523.
       Resolution: Fixed
         Assignee: Paul King
    Fix Version/s: 2.5.0-rc-2

This has been improved somewhat with GROOVY-8548. Please open a new issue or PR 
if you think further improvements are required.

> Improve Documentation for in DefaultGroovyMethods.intersect(..) 
> ----------------------------------------------------------------
>                 Key: GROOVY-6523
>                 URL: https://issues.apache.org/jira/browse/GROOVY-6523
>             Project: Groovy
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 2.2.0
>            Reporter: Alex Beardsley
>            Assignee: Paul King
>            Priority: Minor
>             Fix For: 2.5.0-rc-2
> As noted in GROOVY-1986, the current version of this method is slow compared 
> to Java's existing retainAll method for Sets, on the order of 4000% in test 
> cases with a significant amount of data and intersections. The performance 
> can't be improved due to limitations in the Java API.
> This should be documented, as we would have never chosen intersect(..) if we 
> were aware of the performance implications vs. convenience it provides.

This message was sent by Atlassian JIRA

Reply via email to