[perf] reduce HtmlResponseWriterImpl overhead
---------------------------------------------

                 Key: MYFACES-3445
                 URL: https://issues.apache.org/jira/browse/MYFACES-3445
             Project: MyFaces Core
          Issue Type: Improvement
          Components: JSR-314
            Reporter: Leonardo Uribe
            Assignee: Leonardo Uribe


The default ResponseWriter implementation creates and discard too many 
StringBuilder instances. I think we can rearrange the code to prevent create 
those instances and write directly on the stream, or reuse the allocated 
buffers if necessary. Additionally, there is a check for UTF-8 encoding that is 
done over and over, that we can replace storing it into a boolean variable.

--
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

        

Reply via email to