-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
None
-
b25
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.