Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8025909 Lambda Library Spec Updates
  3. JDK-8024179

Document limitations and performance characteristics of stream sources and operations

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Fixed
    • P3
    • 8
    • 8
    • core-libs

    Description

      Some intermediate operations are barriers, such as limit, distinct and sorted.

      Some stream sources are large or infinite, such as ThreadLocalRandom.current().ints(), Stream.iterate and Stream.generate.

      When such stream sources are hooked up to such intermediate ops in a parallel pipeline OOMEs can occur. (Note that sorted is a barrier for parallel and sequential pipelines.)

      We need to document, using @implNotes where appropriate, such limitations and cases where performance may be reduced

      --

      flatMap operates sequentially on the mapping of E to a Stream<E'>. If the mapping results in 1:N where N is large and varies then the computation tree may be unbalanced

      Attachments

        Issue Links

          Activity

            People

              henryjen Henry Jen
              psandoz Paul Sandoz
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: