The Artima Developer Community
Sponsored Link

Java Buzz Forum
unsynchronized StringBuffer - let the Tiger in!

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Marc Logemann

Posts: 594
Nickname: loge
Registered: Sep, 2002

Marc Logemann is founder of www.logentis.de a Java consultancy
unsynchronized StringBuffer - let the Tiger in! Posted: Aug 14, 2003 8:00 PM
Reply to this message Reply

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.
Latest Java Buzz Posts
Latest Java Buzz Posts by Marc Logemann
Latest Posts From Marc's Java Blog

Advertisement
Finally the days of StringBuffer usage of the compiler will be gone in Tiger. We all know code like this:

String sql = "select * from table" + "where a=1"+ "and b=2"+ "and c=3"+ [...]

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.

Read: unsynchronized StringBuffer - let the Tiger in!

Topic: Fun: Programming Languages as Cars Previous Topic   Next Topic Topic: Do you know your slashers from your Slashdotters?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use