Hi. I was wondering if anyone has noticed a performance difference in servlets using a ServletOutputStream rather than a PrintWriter? What about the opposite?
---<br />Co-author of "Hibernate Quickly"<br /><a href="http://www.manning.com/books/peak" target="_blank" rel="nofollow">http://www.manning.com/books/peak</a>
A ServletOutputStream is intended for direct output without Unicode character translation so it should be faster than a PrintWriter. I got a neat book "Java Performance and Scalability - Server-side Programming Techniques" by Bulka - Addison Wesley in which he does some time tests - the PrintWriter approach is distinctly slower. Bill