Author: julien_viet
Date: 2009-10-30 11:15:19 -0400 (Fri, 30 Oct 2009)
New Revision: 460
Modified:
portal/branches/performance/webui/core/src/main/java/org/exoplatform/webui/application/portlet/PortletApplication.java
Log:
use a 512 byte buffer for portlet output
Modified:
portal/branches/performance/webui/core/src/main/java/org/exoplatform/webui/application/portlet/PortletApplication.java
===================================================================
---
portal/branches/performance/webui/core/src/main/java/org/exoplatform/webui/application/portlet/PortletApplication.java 2009-10-30
14:38:36 UTC (rev 459)
+++
portal/branches/performance/webui/core/src/main/java/org/exoplatform/webui/application/portlet/PortletApplication.java 2009-10-30
15:15:19 UTC (rev 460)
@@ -281,7 +281,10 @@
{
RenderResponse renderRes = (RenderResponse)res;
renderRes.setContentType("text/html; charset=UTF-8");
- w = new PortalPrinter(renderRes.getPortletOutputStream(), true, 0);
+
+ // We use 2048 as the underlying PC will initialize by default
+ // a ByteArrayOutputStream that has a size of 32
+ w = new PortalPrinter(renderRes.getPortletOutputStream(), true, 512);
}
if (context != null)
{