Document limitations and performance characteristics of stream sources and operations

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 8
    • Component/s: core-libs

      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

            Assignee:
            Henry Jen
            Reporter:
            Paul Sandoz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: