hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30388] - Performance Increase by setting the initial ByteArrayOS length
Date Mon, 09 Aug 2004 01:03:14 GMT
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 becke@u.washington.edu  2004-08-09 01:03 -------
Hi Oleg,

I agree that calling get getResponseContentLength() is not free, but I would imagine that
it's faster than 
repeatedly allocating memory inside of of the ByteArrayOutputStream.  I guess the only way
to resolve 
this one is with some performance benchmarks.  This is something that we need to do anyway,
in my 
opinion.  The question is, what makes for a good benchmark?  My feeling is that we should
stick to the 
macro level with something like requests/second.

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org


Mime
View raw message