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-09 09:45 ------- Mike, I guess I failed to make my point clear. I am not saying the initial ByteArrayOutputStream should not be set to a non zero value. What I am trying to say is that saving a few bytes on the heap by adjusting the initial buffer capacity to be less or equal to the response content length does not seem to win much. Why not just setting the initial capacity to 4K and not bothering about parsing the content-length header to save a few bytes only to have them GC-ed almost immediately anyway? As to a performance benchmark, I agree it would be a welcome contribution. I suggest we take a closer at the ab (apache benchmark) utility and produce something similar, if not identical. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]