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

Stream.findFirst for unordered source optimization

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:

      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

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

              Dates

              Created:
              Updated:
              Resolved: