<i18n dev> RFR: 8358880: Performance of parsing with DecimalFormat can be improved [v5]
Johannes Graham
duke at openjdk.org
Fri Jun 13 19:33:18 UTC 2025
> This PR replaces construction of intermediate strings to be parsed with more direct manipulation of numbers. It also has a more streamlined mechanism of handling `Long.MIN_VALUE` when parsing longs by using `Long.parseUnsignedLong`
>
> As a small side-effect it also eliminates the use of a cached StringBuilder in DigitList.
>
> Testing:
> - GHA
> - Local run of tier 2 and jtreg:jdk/java/text
> - New benchmark: DecimalFormatParseBench
Johannes Graham has updated the pull request incrementally with one additional commit since the last revision:
Revert "fix overflow check"
This reverts commit 6a072873ffa87d1191b42053b9f5d955f0119057.
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/25644/files
- new: https://git.openjdk.org/jdk/pull/25644/files/6a072873..c87a3ded
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=25644&range=04
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=25644&range=03-04
Stats: 6 lines in 1 file changed: 0 ins; 4 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/25644.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25644/head:pull/25644
PR: https://git.openjdk.org/jdk/pull/25644
More information about the i18n-dev
mailing list