-
Enhancement
-
Resolution: Fixed
-
P4
-
9
-
b19
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8205875 | 11.0.1 | Paul Sandoz | P4 | Resolved | Fixed | team |
Currently BitSet spliterator reports SIZED characteristic calculating the size during binding via cardinality() method which traverses the whole bitset (though more efficiently compared to usual traversal). Currently SIZED characteristic (w/o SUBSIZED) rarely matters (mostly for toArray() terminal operation without intermediate filter). In other cases it may just slow down the spliterator initialization without any gain. Also non-SIZED implementation would be simpler. It would be good to benchmark SIZED and non-SIZED BitSet implementation and switch to non-SIZED implementation if significant performance difference is observed.
- backported by
-
JDK-8205875 Improve the performance of BitSet traversal
-
- Resolved
-
- relates to
-
JDK-8072784 Better spliterator implementation for BitSet.stream()
-
- Resolved
-