On Thu, 26 Jan 2023 10:05:28 GMT, Sergey Tsypanov <stsypa...@openjdk.org> wrote:
> > it is necessary to copy the elements to a larger new array > > Right, I missed this is addAll() method. Btw, in this class you could do > similar optimization in constructor as well. Just now, I have pushed some updates and used similar optimizations in some places that were missed before. ------------- PR: https://git.openjdk.org/jdk/pull/12212