RFR: 8263038: Optimize String.format for simple specifiers [v2]

Roger Riggs rriggs at openjdk.java.net
Mon Mar 8 16:44:08 UTC 2021


On Mon, 8 Mar 2021 16:00:27 GMT, Claes Redestad <redestad at openjdk.org> wrote:

>> This patch optimizes String.format expressions that uses trivial specifiers. In the JDK, the most common variation of String.format is a variation of format("foo: %s", s), which gets a significant speed-up from this.
>> 
>> Various other cleanups and minor improvements reduce overhead further and ensure we get a small gain also for more complex format strings.
>
> Claes Redestad has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Lazily evaluate zero

Marked as reviewed by rriggs (Reviewer).

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

PR: https://git.openjdk.java.net/jdk/pull/2830


More information about the core-libs-dev mailing list