On Sun, 25 Jun 2023 20:20:00 GMT, 温绍锦 <d...@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: > > move fastUUID implementation to UUID.toString src/java.base/share/classes/java/util/UUID.java line 466: > 464: @Override > 465: public String toString() { > 466: return jla.fastUUID(leastSigBits, mostSigBits); `JavaLangAccess.fastUUID` method now can be removed ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/14578#discussion_r1241280550