RFR: JDK-8310502 : Optimization for j.l.Long.fastUUID() [v21]

温绍锦 duke at openjdk.org
Sun Jun 25 08:30:08 UTC 2023


On Fri, 23 Jun 2023 11:24:23 GMT, 温绍锦 <duke at openjdk.org> wrote:

>> By optimizing the implementation of java.lang.Long#fastUUID, the performance of the java.util.UUID#toString method can be significantly improved.
>> 
>> The following are the test results of JMH: 
>> 
>> Benchmark                     Mode  Cnt      Score      Error   Units
>> UUIDUtilsBenchmark.new       thrpt    5  92676.550 ±  292.213  ops/ms
>> UUIDUtilsBenchmark.original  thrpt    5  37040.165 ± 1023.532  ops/ms
>
> 温绍锦 has updated the pull request incrementally with one additional commit since the last revision:
> 
>   format code

i found a class with the same functionality called 'java.util.HexDigits', but is non-public. 

should i rename it to 'jdk.util.HexDigits' and make it public so that multiple locations can be shared it?

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

PR Comment: https://git.openjdk.org/jdk/pull/14578#issuecomment-1605930630


More information about the core-libs-dev mailing list