JDK-8263038 : Optimize String.format for simple specifiers
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-03-04
  • Updated: 2024-07-11
  • Resolved: 2021-03-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17
17 b13Fixed
Related Reports
Relates :  
Description
String.format using only a combination of simple specifiers, such as %s, %d etc are a common occurrence. A naive parser that avoids use of the regex for such simple format strings can significantly help performance.
Comments
Changeset: f71b21b0 Author: Claes Redestad <redestad@openjdk.org> Date: 2021-03-08 23:13:45 +0000 URL: https://git.openjdk.java.net/jdk/commit/f71b21b0
08-03-2021