RFR: 8310502 : optimization for UUID#toString [v7]

温绍锦 duke at openjdk.org
Thu Jun 22 00:13:07 UTC 2023


On Wed, 21 Jun 2023 15:21:45 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

> CDS can initialize arrays efficiently. The Long class already uses CDS to initialize the cache of Long values. See the LongCache code for an example of initializing from CDS with a fallback to direct initialization. You could move the HEX256 array to the LongCache holder class and avoid any performance hit on startup.

done

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14578#discussion_r1237840813


More information about the core-libs-dev mailing list