RFR: 8358880: Performance of parsing with DecimalFormat can be improved [v6]
duke
duke at openjdk.org
Thu Jul 31 15:02:57 UTC 2025
On Mon, 16 Jun 2025 21:19:45 GMT, Johannes Graham <duke at openjdk.org> wrote:
>> 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:
>
> add comments
@j3graham
Your change (at version b7faa3b86c320aa979da5003002575011e278081) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25644#issuecomment-3140312350
More information about the core-libs-dev
mailing list