Optimization of BigDecimal.valueOf(double)
Johannes Graham
j3graham at gmail.com
Sun May 11 18:37:15 UTC 2025
This is somewhat of followup to a conversation a few months ago [1]
regarding the non-existence of a BigDecimal.valueOf(float) method. While it
wasn't the primary issue, the matter of performance did come up. Based on
that, I have been experimenting with making some improvements there.
I have a draft PR [2] open that leads to an improvement of around 6x for
me. If there is interest in this change, I would need someone to open a
JIRA for this.
Thanks,
Johannes
[1]
https://mail.openjdk.org/pipermail/core-libs-dev/2025-January/139074.html
[2] https://github.com/openjdk/jdk/pull/25173
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20250511/dba71cb9/attachment.htm>
More information about the core-libs-dev
mailing list