> 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 ------------- Changes: - all: https://git.openjdk.java.net/jdk/pull/2830/files - new: https://git.openjdk.java.net/jdk/pull/2830/files/0af863e8..834450dc Webrevs: - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=2830&range=01 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=2830&range=00-01 Stats: 13 lines in 1 file changed: 4 ins; 1 del; 8 mod Patch: https://git.openjdk.java.net/jdk/pull/2830.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/2830/head:pull/2830 PR: https://git.openjdk.java.net/jdk/pull/2830