RFR: 8341470: BigDecimal.stripTrailingZeros() optimization [v31]
fabioromano1
duke at openjdk.org
Mon Oct 7 15:55:27 UTC 2024
> An optimized algorithm for `BigDecimal.stripTrailingZeros()` that uses repeated squares trick.
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 36 additional commits since the last revision:
- Merge branch 'openjdk:master' into patchStripTrailingZeros
- Correct typo in comment
- Speed up computation of shiftRight() and bitLength()
- Minor change
- More explaining variable identificator
- Correct indentation
- Refine the estimate of remaining zeros
- Minor change
- Optimization
- An optimization
- ... and 26 more: https://git.openjdk.org/jdk/compare/8530cce3...8b90da08
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/21323/files
- new: https://git.openjdk.org/jdk/pull/21323/files/4c880789..8b90da08
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=21323&range=30
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=21323&range=29-30
Stats: 11821 lines in 232 files changed: 9817 ins; 1317 del; 687 mod
Patch: https://git.openjdk.org/jdk/pull/21323.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/21323/head:pull/21323
PR: https://git.openjdk.org/jdk/pull/21323
More information about the core-libs-dev
mailing list