RFR: 8341470: BigDecimal.stripTrailingZeros() optimization [v36]

fabioromano1 duke at openjdk.org
Fri Oct 11 22:32:43 UTC 2024


> An optimized algorithm for `BigDecimal.stripTrailingZeros()` that uses repeated squares trick.

fabioromano1 has updated the pull request incrementally with one additional commit since the last revision:

  Apply suggestions from code review
  
  Co-authored-by: Raffaello Giulietti <raffaello.giulietti at oracle.com>
  Co-authored-by: Andrey Turbanov <turbanoff at gmail.com>

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/21323/files
  - new: https://git.openjdk.org/jdk/pull/21323/files/2e2c042e..b30f5a35

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=21323&range=35
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=21323&range=34-35

  Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 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