RFR: 8316156: (ch) Channels.newOutputStream(ch).write(bigByteArray) allocates a lot of direct memory [v4]
David Schlosnagle
duke at openjdk.org
Fri Sep 15 00:20:39 UTC 2023
On Thu, 14 Sep 2023 19:32:21 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> I can look into running a benchmark on this.
>
> A quick measurement suggests that doubling the buffer size to 16384 would increase `read` throughput by more than 15%, and `write` throughput by more than 40%.
That would be a nice additional benefit on top of reducing the direct memory allocations
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15733#discussion_r1326643651
More information about the nio-dev
mailing list