On 05/01/2015 10:14 PM, Bernd Eckenfels wrote: > btw just a small - maybe unrelated - observation on stock Java8u40. When > benchmarking String.valueOf/Integer.toString/""+n with JMH I noticed > that the compiler aided concatenation is the fastest,
String concat desugaring and optimizations is a separate topic, unrelated to the issue at hand. Let's not sidetrack. > but not for all integer values. You have to notice the errors are quite large, so you can't really tell if StringConcat is "slower" on 2147483647. > https://gist.github.com/ecki/399136f4fd59c1d110c1 Thanks, -Aleksey