Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-6523

Improve Documentation for in DefaultGroovyMethods.intersect(..)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.0
    • 2.5.0-rc-2
    • Documentation
    • None

    Description

      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.

      Attachments

        Activity

          People

            paulk Paul King
            nalandial Alex Beardsley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: