I did not notice that Alan’s comment below, about adding a hint as to the maximum expected size, has been specifically addressed anywhere in this discussion. It might not be all that pertinent to the main thread of discussion, however, but it would certainly be useful for the issue [1], which I linked to [2].
Brian [1] https://bugs.openjdk.org/browse/JDK-8329287 [2] https://bugs.openjdk.org/browse/JDK-8353729 On Apr 2, 2025, at 3:52 AM, Alan Bateman <alan.bate...@oracle.com> wrote: […] and whether having a parameter to specify the initial size or some hint of the max size would help the discussion.