John Zink wrote:
>
> Could you send me an example of StringBuffer pooling ?
> I am not quite sure what you mean.
>
Forget the StringBuffer pooling (with a modern JVM it
probably won't help much anyway). Your problem is that
touching bytes/chars one at a time is deadly slow. Fix
your reader to read/append arrays. Bonus points if you
can make the array as big as the request (so you end
up with a single read and a single append). You can
muck around further trying for more performance, but
fix the one-char-at-a-time problem first. (If you've
already done that, never mind :-)
--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html