-
Notifications
You must be signed in to change notification settings - Fork 134
Open
Description
What happened?
Code like stream.map(foo::expensiveConversion).limit(N), stream.sorted().limit(N), or stream.filter(this::someFilter).sorted() does not trigger any warnings for inefficiency.
What did you want to happen?
If one writes code that limits or filters a Stream we should push those predicates earlier in the pipeline where possible to limit the amount of downstream computation and allocations are performed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels