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

Implement forEach in Collections.CopiesList

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 18
    • None
    • core-libs
    • None

      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

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

              Created:
              Updated:
              Resolved: