<i18n dev> RFR: 8367324: Avoid redundant parsing when formatting with DigitList [v3]

Johannes Graham duke at openjdk.org
Fri Sep 12 22:44:54 UTC 2025


> 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.

Johannes Graham has updated the pull request incrementally with one additional commit since the last revision:

  VALUES_SIZE

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27118/files
  - new: https://git.openjdk.org/jdk/pull/27118/files/6865fe6a..47eb0a89

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27118&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27118&range=01-02

  Stats: 4 lines in 1 file changed: 1 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/27118.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27118/head:pull/27118

PR: https://git.openjdk.org/jdk/pull/27118


More information about the i18n-dev mailing list