RFR: 8205592: BigDecimal.doubleValue() is depressingly slow
Raffaello Giulietti
duke at openjdk.org
Fri Jul 22 15:00:43 UTC 2022
On Thu, 21 Jul 2022 02:10:27 GMT, Julian Waters <jwaters at openjdk.org> wrote:
>> A reimplementation of `BigDecimal.[double|float]Value()` to enhance performance, avoiding an intermediate string and its subsequent parsing on the slow path.
>
> Impressive performance improvements, I also like the PR title :P
@TheShermanTanker
The title is the one from the JBS issue.
As for the performance improvements, note that microbenchmarks are what they are. The overall effect of these improvements might be barely noticeable in some programs using BigDecimal and might be positively impact others.
-------------
PR: https://git.openjdk.org/jdk/pull/9410
More information about the core-libs-dev
mailing list