JDK 25 |
---|
25 masterFixed |
Relates :
|
Reduce memory consumption of BigInteger.pow() by adopting a better computation strategy. By iterating the exponent bits from left to right (from most to least significant), only the current running result needs to be squared and multiplied, while the base is untouched. The memory savings are substantial, up to 45% w.r.t. the current implementation.
|