tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George Sexton" <gsex...@mhsoftware.com>
Subject RE: StringBuffer Factory?
Date Sun, 28 Dec 2003 01:30:05 GMT
This is a really bad idea because of the implementation of
StringBuffer.toString() and setLength().


http://developer.java.sun.com/developer/bugParade/bugs/4724129.html



George Sexton
MH Software, Inc.
Home of Connect Daily Web Calendar Software
http://www.mhsoftware.com/connectdaily.htm
Voice: 303 438 9585


-----Original Message-----
From: Philipp Taprogge [mailto:Philipp.Taprogge@gmx.net] 
Sent: Saturday, December 27, 2003 6:21 PM
To: Tomcat Users List
Subject: StringBuffer Factory?


Hi!

I was just working on a little project of mine when a thought sprang 
to my mind...
In my servlets I often have to assemble Strings like SQL statements 
and the like. I use StringBuffers for this as they offer much better 
performance than concat. Now I was wondering: would it make any sense 
at all to get my StringBuffers from a pool by using JNDI instead of 
having each servlet create new ones? I am not sure of the runtime cost 
involved in JNDI lookups. Any thoughts?

	Phil


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message