RFR: 8358533: Improve performance of java.io.Reader.readAllLines [v7]

Brian Burkhalter bpb at openjdk.org
Fri Jun 27 23:02:43 UTC 2025


On Fri, 27 Jun 2025 22:46:40 GMT, Xueming Shen <sherman at openjdk.org> wrote:

> [...] more in line with how resizing is handled in string builder

Looks like `StringBuilder` eventually calls `ArraysSupport.newLength(int,int.int)`. This is probably worth checking out.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/25863#discussion_r2172961020


More information about the core-libs-dev mailing list