Integrated: 8367324: Avoid redundant parsing when formatting with DigitList
Johannes Graham
duke at openjdk.org
Thu Sep 25 18:26:36 UTC 2025
On Fri, 5 Sep 2025 14:18:19 GMT, Johannes Graham <duke at openjdk.org> wrote:
> When formatting doubles or BigDecimals, DigitList first formats them as a string and then parses the resultant string to extract the mantissa and the exponent. This can be done more directly. This allows removing some parsing code and removes a cached byte array.
>
> This also facilitates potential cleanups in FloatingDecimal (removal of getChars method) but I've left that for later to minimize conflicts with other changes there.
This pull request has now been integrated.
Changeset: a48538dd
Author: Johannes Graham <j3graham at gmail.com>
Committer: Raffaello Giulietti <rgiulietti at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/a48538dd6379d606b75b849dd899413af76a068c
Stats: 145 lines in 5 files changed: 51 ins; 73 del; 21 mod
8367324: Avoid redundant parsing when formatting with DigitList
Reviewed-by: jlu, rgiulietti
-------------
PR: https://git.openjdk.org/jdk/pull/27118
More information about the core-libs-dev
mailing list