RFR: 8320759: Creation of random BigIntegers can be made faster [v3]

Brian Burkhalter bpb at openjdk.org
Tue Dec 5 22:03:38 UTC 2023


On Sat, 2 Dec 2023 15:42:18 GMT, fabioromano1 <duke at openjdk.org> wrote:

>> A faster and simpler way to generate random BigIntegers, avoiding eventually trimming of leading zeros in magnitude array.
>
> fabioromano1 has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Create RandomBigIntegers.java
>   
>   Create a benchmark to measure the performance of BigInteger(int, Random) constructor implementation.

So, item 1 is a non-issue and item 2 is not likely a problem in practice. What, if anything, will be done about item 3?

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

PR Comment: https://git.openjdk.org/jdk/pull/16817#issuecomment-1841688735


More information about the core-libs-dev mailing list