On Fri, 5 Sep 2025 14:18:19 GMT, Johannes Graham <[email protected]> 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 <[email protected]>
Committer: Raffaello Giulietti <[email protected]>
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

Reply via email to