Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8037106

Optimize Arrays.asList(...).forEach

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None

      Backports

        Description

        Currently Arrays.asList(...).forEach defers to the default implementation on Iterable.

        An optimized implementation can be provided directly iterating over the array. Same can apply for other default methods, replaceAll and sort.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                psandoz Paul Sandoz
                Reporter:
                psandoz Paul Sandoz
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: