-
Bug
-
Resolution: Fixed
-
P4
-
8, 9
-
b117
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8224143 | openjdk8u222 | Tagir Valeev | P4 | Resolved | Fixed | b03 |
Current implementation of parallel unordered Stream.limit() (backed by UnorderedSliceSpliterator) has fixed CHUNK_SIZE 128 (1 << 7) which is the number of elements every parallel task tries to traverse before checking whether enough elements is collected. This is wasteful if limit is less than 128. As limit is known for every parallel task from the very beginning, it's quite easy to lower chunk size in such cases.
- backported by
-
JDK-8224143 Parallel unordered Stream.limit() tries to collect 128 elements even if limit is less
-
- Resolved
-
- duplicates
-
JDK-8072841 Adjust the buffering size for limit/slice operations on unordered parallel stream pipelines
-
- Closed
-
- relates to
-
JDK-8190974 Parallel stream execution within a custom ForkJoinPool should obey the parallelism
-
- Resolved
-