RFR: 8320759: Creation of random BigIntegers can be made faster [v2]
fabioromano1
duke at openjdk.org
Tue Nov 28 22:19:06 UTC 2023
On Tue, 28 Nov 2023 19:31:14 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> Do you have any actual benchmark measurements that you could share?
>
>> @bplb I have not yet made benchmark measurements, but I can produce them.
>
> @fabioromano1 I think it would be good to measure and report the benefit, if you don't mind.
@bplb As you might expect, the newer implementation takes about half the time, since it avoids copying the random byte array into the magnitude array.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16817#issuecomment-1830846472
More information about the core-libs-dev
mailing list