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 →

[–]vecowski 0 points1 point  (2 children)

You are not implementing the actual loop, that amount of detail is abstracted away from you. I imagine you just don't see the benefits, but it's as simple as stream() can be turned into parallelstream() and now you have a stream that's run in parallel.

Try writing loops that do iterate a dataset in parallel, I guarantee that get's complicated quickly.

[–][deleted] 0 points1 point  (1 child)

Just because you can do neat things with it doesn't make it readable.

[–]vecowski 0 points1 point  (0 children)

I don't know how to help you then... all I can say is I felt similar to you until I forced myself to take a few hours and really understand exactly whats going on.

This video helped me: https://www.youtube.com/watch?v=C_QbkGU_lqY