RFR: JDK-8310502 : Optimization for j.l.Long.fastUUID() [v26]
Glavo
duke at openjdk.org
Tue Jun 27 14:10:15 UTC 2023
On Tue, 27 Jun 2023 14:02:52 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
> What I suggest is to prepare the array only once (in the static block as it is now), but have each class that use it encapsulate is own copy - obtained from clone(). Surely 256 shorts is not so large that we can't have two arrays?
The point is that it doesn't make any sense, so I don't feel like we should pay anything for it.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14578#discussion_r1243812535
More information about the core-libs-dev
mailing list