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

Implement forEach in Collections.CopiesList

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 18
    • Component/s: core-libs
    • Labels:
      None

      Description

      Originally was proposed by Zheka Kozlov here: http://mail.openjdk.java.net/pipermail/core-libs-dev/2018-December/057192.html

      Just a tiny optimization: we can use for-i loop instead of Iterable.forEach() which is relying on iterator.

      Benchmarking demonstrates good improvement, see https://github.com/openjdk/jdk/pull/2524

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stsypanov Sergey Tsypanov
              Reporter:
              stsypanov Sergey Tsypanov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: