You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.util.stream.Stream can implement some optimisations if custom Collectors pass hints to the collect() API via java.util.stream.Collector.Characteristics. We should also pass these characteristics.
The text was updated successfully, but these errors were encountered:
As you mostly ignore parallel streams, the only useful characteristic in your case is IDENTITY_FINISH which is automatically injected if you are using Collector.of without providing the finisher.
Thanks for the feedback, @amaembo. Within jOOλ, that's certainly true, but people might use the collectors exposed in Agg also for parallel JDK streams, or for StreamEx...
java.util.stream.Stream
can implement some optimisations if customCollectors
pass hints to thecollect()
API viajava.util.stream.Collector.Characteristics
. We should also pass these characteristics.The text was updated successfully, but these errors were encountered: