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

Implement forEach in Collections.CopiesList

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 18
    • None
    • core-libs
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: