On Sun, 11 May 2025 16:22:11 GMT, Johannes Graham <d...@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 <j3gra...@gmail.com> Committer: Raffaello Giulietti <rgiulie...@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