Sized Collector supplier

Roman Leventov leventov.ru at gmail.com
Tue Sep 18 09:38:13 UTC 2018


Is there a reason why java.util.stream.Collector doesn't support sized
supply of a mutable result container? It seems that it could be hugely
beneficial when the size of the stream is known, e. g. for precise
ArrayList and HashMap.


More information about the core-libs-dev mailing list