RFR: 8358533: Improve performance of java.io.Reader.readAllLines
Brian Burkhalter
bpb at openjdk.org
Wed Jun 18 17:00:45 UTC 2025
On Wed, 18 Jun 2025 02:26:48 GMT, Chen Liang <liach at openjdk.org> wrote:
> Is there a reason for this pre-allocation?
What would you suggest? Start with a smaller allocation and increase it if needed? There is no possibility of knowing the length of the stream.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25863#discussion_r2155097993
More information about the core-libs-dev
mailing list