unrdered() (original) (raw)

Brian Goetz brian.goetz at oracle.com
Wed Apr 3 19:34:25 PDT 2013


At one point, we had an unordered() op. I think it may be time to bring it back.

There are a growing number of ops that have optimized implementations for unordered streams:

So a way of saying "I know you think this stream has ordering, but I don't care about it" is a way of opting into these optimizations.

Implementation is trivial.

Adding .unordered() could also enable us to get rid of .collectUnordered(), and allow more of the reduce-like ops to benefit from the embrace of "disorder" without API explosion.



More information about the lambda-dev mailing list