Re: RFR: 8277535: Remove redundant Stream.distinct()/sorted() steps [v2]

2021-11-22 Thread Andrey Turbanov
> 1. Stream.distinct() is redundant before toSet() collector. Duplicates will > be collapsed by Collector. > 2. Stream.sorted() is redundant before toMap() collector. Keys will be > shuffled by Collector (it's a HashMap in current implementation) Andrey Turbanov has updated the pull request

Re: RFR: 8277535: Remove redundant Stream.distinct()/sorted() steps

2021-11-22 Thread Pavel Rappo
On Mon, 27 Sep 2021 11:20:53 GMT, Andrey Turbanov wrote: > 1. Stream.distinct() is redundant before toSet() collector. Duplicates will > be collapsed by Collector. > 2. Stream.sorted() is redundant before toMap() collector. Keys will be > shuffled by Collector (it's a HashMap in current

RFR: 8277535: Remove redundant Stream.distinct()/sorted() steps

2021-11-22 Thread Andrey Turbanov
1. Stream.distinct() is redundant before toSet() collector. Duplicates will be collapsed by Collector. 2. Stream.sorted() is redundant before toMap() collector. Keys will be shuffled by Collector (it's a HashMap in current implementation) - Commit messages: - [PATCH] Remove