Preserve SIZED characteristics on slice operations (skip, limit)

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 17
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      Currently, skip() and limit() operations do not preserve the SIZED characteristics in sequential streams. As a result, having skip() or limit() in sequential stream, makes operations like toArray(), toList() and count() working slower and producing more garbage than necessary. It's possible to keep the SIZED characteristics if we can adjust the size reported by an original spliterator.

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

              Created:
              Updated:
              Resolved: