RFR: 8355719: Reduce memory consumption of BigInteger.pow() [v38]

fabioromano1 duke at openjdk.org
Mon Apr 28 14:33:55 UTC 2025


On Mon, 28 Apr 2025 14:27:00 GMT, Chen Liang <liach at openjdk.org> wrote:

> In this case you can still use computePower and remove the branching to check if double arithmetic should be used - you are passing the cache array, so you can control what is the initial values in that array.

Yes, but if I have to check the contents of the cache, then it's useless to remove the branching to check if double arithmetic should be used, since the same check has to be done previously.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24690#discussion_r2063790215


More information about the core-libs-dev mailing list