You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (Created) (JIRA)" <de...@myfaces.apache.org> on 2012/01/16 22:55:38 UTC

[jira] [Created] (MYFACES-3449) [perf] replace buffer in PartialResponseWriter implementation with a fast filter

[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

        

[jira] [Resolved] (MYFACES-3449) [perf] replace buffer in PartialResponseWriter implementation with a fast filter

Posted by "Leonardo Uribe (Resolved) (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-3449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leonardo Uribe resolved MYFACES-3449.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.6
                   2.0.12
    
> [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
>             Fix For: 2.0.12, 2.1.6
>
>
> 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