[ 
https://issues.apache.org/jira/browse/MYFACES-3450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Leonardo Uribe resolved MYFACES-3450.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.6
                   2.0.12
    
> [perf] use grails StreamCharBuffer instead FastWriter in 
> HtmlResponseWriterImpl
> -------------------------------------------------------------------------------
>
>                 Key: MYFACES-3450
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3450
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: JSR-314
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.12, 2.1.6
>
>
> Looking for a solution to replace the default FastWriter implementation, with 
> one that allocate multiple blocks on demand, and in this way reduce the 
> memory used to render a page, I founded one cool implementation in:
> org.codehaus.groovy.grails.web.util.StreamCharBuffer
> http://grails.org/doc/latest/api/org/codehaus/groovy/grails/web/util/StreamCharBuffer.html
> This file has Apache v2.0 license, so we can include it into MyFaces and use 
> it into our HtmlResponseWriterImpl as internal buffer. I did some performance 
> tests and I notice the impact in speed is minimal or non existent, but in 
> memory it is good enough, because HtmlResponseWriterImpl usually is cloned on 
> ajax requests and FastWriter always initialize a buffer, no matter if it is 
> used or not, and if the page is big, the buffer grows without unnecessary 
> copy operations.

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