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.
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.