RFR: 8305811: (bf) Improve heap buffer performance of CharBuffer::append(CharSequence)
Brian Burkhalter
bpb at openjdk.org
Tue Apr 11 17:09:32 UTC 2023
On Tue, 11 Apr 2023 17:00:04 GMT, Ismael Juma <duke at openjdk.org> wrote:
> Yeah, `StringBuffer` being slower is expected, but the benchmark shows `StringBuilder` being slower - that's surprising.
The benchmark shows `StringBuilder` being faster for the modified code. This I suppose could be due to a `toString()` call being avoided.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13415#issuecomment-1503787705
More information about the nio-dev
mailing list