Proposal: ArrayList constructor perforrmance improvement

Martin Buchholz martinrb at
Wed Dec 19 01:01:50 UTC 2018

Sorry for not having remembered the history.
Having ArrayList(Collection) delegate to toArray was done for performance
and robustness.
We don't want to change the "trimming" behavior of collection copying,
because trimming by copying is a common idiom (we never added trimming
methods to all the collection classes).
We seem to be in agreement that we should not change anything here.

More information about the core-libs-dev mailing list