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

fabioromano1 duke at openjdk.org
Fri Oct 4 17:25:36 UTC 2024


On Fri, 4 Oct 2024 17:15:54 GMT, Raffaello Giulietti <rgiulietti at openjdk.org> wrote:

>> @fabioromano1, this is a static method manipulating static fields that are shared by all instances; whether individual instances are thread safe is a separate and unrelated issue.
>
> The real problem here is the maximal size this table can reach and the time it takes to be filled in the worst case: around 300 MB and several minutes.

@rgiulietti Which means, however, wanting to work with a precision of billions of decimal digits, and therefore taking on the consequences...

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21323#discussion_r1788043406


More information about the core-libs-dev mailing list