Re: Discussion: Efficient ByteBuffer -> String that avoids additional copying

2018-05-16 Thread Xueming Shen
On 5/16/18, 10:03 AM, Claes Redestad wrote: Hi, I'd just like to point out there's been some recent effort on this, see: https://bugs.openjdk.java.net/browse/JDK-8021560 .. which was RFR'd here: http://mail.openjdk.java.net/pipermail/core-libs-dev/2018-February/051401.html I'm not sure

Re: Discussion: Efficient ByteBuffer -> String that avoids additional copying

2018-05-16 Thread Claes Redestad
Hi, I'd just like to point out there's been some recent effort on this, see:  https://bugs.openjdk.java.net/browse/JDK-8021560 .. which was RFR'd here:  http://mail.openjdk.java.net/pipermail/core-libs-dev/2018-February/051401.html I'm not sure what the current status of that is, but seems th

Discussion: Efficient ByteBuffer -> String that avoids additional copying

2018-05-16 Thread Jacob Glickman
Paul, Would you mind explaining more about what you're looking for regarding this? I'm curious if `ByteBuffer#getString` is what you're after, or rather something similar to `String.from(ByteBuffer)`. I'll definitely have a look at jdk.internal.misc.SharedSecrets in the meantime. Thanks! - Jac