RFR: 8353741: Eliminate table lookup in UUID.toString [v3]
Shaojin Wen
swen at openjdk.org
Tue May 20 00:52:53 UTC 2025
On Mon, 19 May 2025 18:30:20 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>> Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision:
>>
>> simplify code
>
> src/java.base/share/classes/java/util/UUID.java line 491:
>
>> 489: * hexadecimal representation, concatenate these hexadecimal strings into one continuous string, and then interpret
>> 490: * this string as a hexadecimal number to form and return a long value.
>> 491: */
>
> Is there a reference describing this technique? Such as the Hacker's Delight citation used in java.lang.Long?
> If not a longer descriptive comment would be good for maintainability.
This algorithm was researched and implemented by me, and I have added detailed description and comments
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/22928#discussion_r2096658412
More information about the core-libs-dev
mailing list