8011135: (bf) CharBuffer.put(String) is slow because of String.charAt() call for each char

Alan Bateman Alan.Bateman at oracle.com
Fri Feb 22 11:16:26 UTC 2019

On 21/02/2019 20:30, Brian Burkhalter wrote:
> I created a webrev including an updated benchmark:
> http://cr.openjdk.java.net/~bpb/8011135/webrev/
This version looks good.

Claes might have some comments on the microbenchmark, my only comment 
that future maintainers might wonder about the +42 and also why the 
position is reset to 21 (I assume it would be buf.clear(); buf.put(str);

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190222/0e5bac06/attachment.html>

More information about the nio-dev mailing list