RFR: 8358880: Performance of parsing with DecimalFormat can be improved [v6]

Raffaello Giulietti rgiulietti at openjdk.org
Wed Jul 30 13:42:59 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

Thanks @j3graham for your contribution.

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

Marked as reviewed by rgiulietti (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/25644#pullrequestreview-3071606450


More information about the core-libs-dev mailing list