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

fabioromano1 duke at openjdk.org
Wed Aug 7 13:55:10 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:

 - Merge branch 'openjdk:master' into patchLeftShift
 - Removed trailing whitespace
 - MutableBigInteger.leftShift(int) optimization

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/20008/files
  - new: https://git.openjdk.org/jdk/pull/20008/files/05514c5b..0f7c8f3d

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

  Stats: 45275 lines in 1479 files changed: 26215 ins; 12187 del; 6873 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