RFR: 8356709: Avoid redundant String formatting in BigDecimal.valueOf(double)

Johannes Graham duke at openjdk.org
Thu May 15 16:27:53 UTC 2025


On Mon, 12 May 2025 02:06:23 GMT, Chen Liang <liach 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.
>
> Sorry, didn't see your core-libs-dev mail. Created an issue for you at https://bugs.openjdk.org/browse/JDK-8356709

Thank you @liach @rgiulietti and @jddarcy

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

PR Comment: https://git.openjdk.org/jdk/pull/25173#issuecomment-2884410316


More information about the core-libs-dev mailing list