8263038: Optimize String.format for simple specifiers #2830
Microbench results - baseline:
-Xint similarly sees no change on complexString, but a 3-3.5x speed-up on stringFormat
@cl4es This change now passes all automated pre-integration checks.
ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.
After integration, the commit message for the final commit will be:
At the time when this comment was updated there had been 48 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.
➡️ To integrate this PR with the above commit message to the
Piling on another optimization: The
Since the zero value is only used when printing floating point number I refactored so that the localized zero is evaluated lazily, which gets numbers on the micros in line with the numbers for a US locale:
@cl4es Since your change was applied there have been 49 commits pushed to the
Your commit was automatically rebased without conflicts.
Pushed as commit f71b21b.
💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.