RFR: 8336274: MutableBigInteger.leftShift(int) optimization

Chen Liang liach at openjdk.org
Fri Jul 12 08:45:31 UTC 2024


On Wed, 3 Jul 2024 14:17:37 GMT, fabioromano1 <duke at openjdk.org> wrote:

> This implementation of MutableBigInteger.leftShift(int) optimizes the current version, avoiding unnecessary copy of the MutableBigInteger's value content and performing the primitive shifting only in the original portion of the value array rather than in the value yet extended with trailing zeros.

Filed https://bugs.openjdk.org/browse/JDK-8336274 for you.

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

PR Comment: https://git.openjdk.org/jdk/pull/20008#issuecomment-2224093859


More information about the core-libs-dev mailing list