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

Raffaello Giulietti rgiulietti at openjdk.org
Fri Oct 4 12:37:36 UTC 2024


On Fri, 4 Oct 2024 09:34:54 GMT, fabioromano1 <duke at openjdk.org> wrote:

>> 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:
> 
>   Avoid overflow of scale - preferredScale

FYI, [Rampdown Phase One for JDK 24](https://openjdk.org/projects/jdk/24/) will happen on 2024-12-05, so there's no need to rush.

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

PR Comment: https://git.openjdk.org/jdk/pull/21323#issuecomment-2393608060


More information about the core-libs-dev mailing list