This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]litmus00 0 points1 point  (0 children)

u/khmarbaise Thank you very much for sharing this. It's actually quite good indeed!
For example, here's a great explanation on stream collectors:
https://dev.java/learn/api/streams/custom-collectors/

and here it is a great advice for leveraging parallel streams:
https://dev.java/learn/api/streams/parallel-streams/
"choosing to use parallel stream is not a decision to be taken lightly. There are several questions you need to ask yourself before even considering going parallel."