Integrated: 8356709: Avoid redundant String formatting in BigDecimal.valueOf(double)
Johannes Graham
duke at openjdk.org
Thu May 15 16:37:05 UTC 2025
On Sun, 11 May 2025 16:22:11 GMT, Johannes Graham <duke at openjdk.org> wrote:
> Optimize `BigDecimal.valueOf(double)` by using `FormattedFPDecimal` instead of converting to decimal string and then parsing it. This results in an approximate 6x improvement for me.
This pull request has now been integrated.
Changeset: 1e61352b
Author: Johannes Graham <j3graham at gmail.com>
Committer: Raffaello Giulietti <rgiulietti at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/1e61352b54e1ac85fbc6b54a7a29e8782dd42d2c
Stats: 178 lines in 4 files changed: 169 ins; 1 del; 8 mod
8356709: Avoid redundant String formatting in BigDecimal.valueOf(double)
Reviewed-by: rgiulietti
-------------
PR: https://git.openjdk.org/jdk/pull/25173
More information about the core-libs-dev
mailing list