RFR: 8258588: MD5 MessageDigest in java.util.UUID should be cached

Alan Bateman alanb at openjdk.java.net
Fri Dec 18 09:12:54 UTC 2020


On Thu, 17 Dec 2020 13:36:17 GMT, PROgrm_JARvis <github.com+7693005+JarvisCraft at openjdk.org> wrote:

> Please review this change moving lookup of MD5 digest in `java.lang.UUID` to an internal holder class.

Are you planning to add a microbenchmark to demonstrate the issue?
If there is a holder class for the MessageDigest then its initialisation can fail, this would allow the orThrow method to go away

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

PR: https://git.openjdk.java.net/jdk/pull/1821


More information about the core-libs-dev mailing list