Refactor Double.toHexString to eliminate regex and StringBuilder

wenshao shaojin.wensj at alibaba-inc.com
Thu Oct 16 12:50:58 UTC 2025


Referencing jddarcy's 8369312: Refactor Float.toHexString() to avoid use of regex (https://github.com/openjdk/jdk/pull/27780 <https://github.com/openjdk/jdk/pull/27780 >), we can further eliminate the regex and StringBuilder in Double.toHexString to improve performance.
To make my proposal easier to understand, I've prepared a draft PR: https://github.com/openjdk/jdk/pull/27811 <https://github.com/openjdk/jdk/pull/27811 >
-
Shaojin Wen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20251016/191317c4/attachment.htm>


More information about the core-libs-dev mailing list