On Fri, 26 May 2023 06:47:29 GMT, Hannes Greule <d...@openjdk.org> wrote:

>> src/java.base/share/classes/java/util/UUID.java line 286:
>> 
>>> 284:         long lsb = 0;
>>> 285:         for (int i = start; i < start + 8; i++) {
>>> 286:             msb = (msb << 8) | (data[i] & 0xff);
>> 
>> Can we use VarHandle/ByteBuffer to read 64 bits at a time?
>
> `jdk.internal.util.ByteArray` has VarHandle-based methods ready for that

Yes, I have that optimization in the pipeline, and wanted to do so separately. 
I can still fold it here, let me see.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/14135#discussion_r1206431718

Reply via email to