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

Stream.findFirst for unordered source optimization

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 9
    • None
    • core-libs

    Description

      Currently Stream.findFirst() in parallel for unordered stream still tries to find the first stream element which adds unnecessary overhead. If the stream is unordered, findFirst() should work like findAny().

      Attachments

        Activity

          People

            tvaleev Tagir Valeev
            tvaleev Tagir Valeev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: