Implement forEach in Collections.CopiesList

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 18
    • Affects Version/s: None
    • Component/s: 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

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

              Created:
              Updated:
              Resolved: