This post originated from an RSS feed registered with Java Buzz
by Marc Logemann.
Original Post: unsynchronized StringBuffer - let the Tiger in!
Feed Title: Marc's Java Blog
Feed URL: http://www.logemann.org/day/index_java.xml
Feed Description: Java related topics for all major areas. So you will see J2ME, J2SE and J2EE issues here.
We get a nice StringBuffer Object calling append() to do the concatenation. The problem is, it is synchronized and not too fast. With JDK 1.5 aka Tiger, the compiler will use a new class "StringBuilder" which behaves like StringBuffer but w/o synchronization.
Good thing. I cant wait to see the next prototype compiler, the current one lacks of metadata support.