RFR: 8336274: MutableBigInteger.leftShift(int) optimization [v7]

fabioromano1 duke at openjdk.org
Sat Sep 7 20:39:39 UTC 2024


> 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.

fabioromano1 has updated the pull request incrementally with two additional commits since the last revision:

 - Merge branch 'patchLeftShift' of https://github.com/fabioromano1/jdk into patchLeftShift
 - Removed redundant code

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/20008/files
  - new: https://git.openjdk.org/jdk/pull/20008/files/df35072c..b48fb7a9

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=20008&range=06
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=20008&range=05-06

  Stats: 13 lines in 1 file changed: 0 ins; 11 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/20008.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20008/head:pull/20008

PR: https://git.openjdk.org/jdk/pull/20008


More information about the core-libs-dev mailing list