Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3449

[perf] replace buffer in PartialResponseWriter implementation with a fast filter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.12, 2.1.6
    • JSR-314
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              lu4242 Leonardo Uribe
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: