Integrated: JDK-8310502 : Optimization for j.l.Long.fastUUID()

温绍锦 duke at openjdk.org
Thu Jun 29 13:41:21 UTC 2023


On Wed, 21 Jun 2023 07:28:54 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

This pull request has now been integrated.

Changeset: 20f7d05e
Author:    shaojin.wensj <shaojin.wensj at alibaba-inc.com>
Committer: Jie Fu <jiefu at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/20f7d05ef238074143b01deb66a99217b2af47d8
Stats:     137 lines in 5 files changed: 94 ins; 41 del; 2 mod

8310502: Optimization for j.l.Long.fastUUID()

Reviewed-by: liach, alanb

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

PR: https://git.openjdk.org/jdk/pull/14578


More information about the core-libs-dev mailing list