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

Roger Riggs rriggs at openjdk.org
Thu Nov 30 20:40:09 UTC 2023


On Mon, 27 Nov 2023 22:58:17 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:
> 
>   Update BigInteger(int, Random)
>   
>   Update a comment

There are some JMH tests for BigInteger in test/micro/org/openjdk/bench/java/math/Big*.

Can you create a new benchmark for the computations above and include it in the PR.
That will make it easier to keep track of the performance over time.
Thanks

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

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


More information about the core-libs-dev mailing list