Re:Java memes which refuse to die
by jonhohle on Wednesday August 29, 2012 @09:52AM
(#4448497)
The example in that article is fairly dumb (why would you use concatenation as an input to a StringBuffer). The Java compiler converts concatenation to StringBuilder in Java 1.6. In most cases (eight the exception of loops and federated, organized string creation) the + operator is identical in performance to StringBuilder (because that's what it compiles to).
[ Parent
| on HN ]
There are no comments on this comment yet.