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

Stream.findFirst for unordered source optimization

XMLWordPrintable

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

      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().

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

              Created:
              Updated:
              Resolved: