[perf] replace buffer in PartialResponseWriter implementation with a fast filter --------------------------------------------------------------------------------
Key: MYFACES-3449 URL: https://issues.apache.org/jira/browse/MYFACES-3449 Project: MyFaces Core Issue Type: Improvement Components: JSR-314 Reporter: Leonardo Uribe Assignee: Leonardo Uribe The current implementation of PartialResponseWriter uses a StringWriter with an inner StringBuilder to store the data and then post-process it, escaping CDATA ending sections. After checking the code I notice it is possible to replace the buffer with a Filter that escape such sections "on the fly". This will reduce the memory used to handle ajax requests and improve speed a little bit, because the jvm does not longer need to expand over and over such buffer to fit the response. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira