RFR (XS) 8076759: AbstractStringBuilder.append(...) should ensure enough capacity for the upcoming "trivial" append calls
aleksey.shipilev at oracle.com
Mon May 4 12:49:58 UTC 2015
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.
More information about the core-libs-dev