DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30388>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30388

Performance Increase by setting the initial ByteArrayOS length





------- Additional Comments From [EMAIL PROTECTED]  2004-08-10 17:30 -------
I seems to me that the bottleneck in your specific case has been the JVM's heap
manager and the GC thread rather than getResponseBodyAsString() method. I see no
measurable performance variations when tweaking buffer initial capacity in a
single-threaded application.

I kinda lean toward not changing the stock of HttpClient. In your particular
case you should probably be using HttpMethod#getResponseBodyAsStream() to read
out the response content and employ the optimization scheme that fits your
application best.

Mike, I leave it at your discretion. Feel free to ignore my rumbling and submit
your initial patch

Oleg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to