MyFaces Core
  1. MyFaces Core
  2. MYFACES-3445

[perf] reduce HtmlResponseWriterImpl overhead

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.12, 2.1.6
    • Component/s: JSR-314
    • Labels:
      None

      Description

      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.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Leonardo Uribe
            Reporter:
            Leonardo Uribe
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development