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

UILeaf memory improvements

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.8, 2.1.2
    • JSR-314
    • None

    Description

      Doing some tests, I notice org.apache.myfaces.view.facelets.compiler.UILeaf does not override attributes map, and it should be.

      This cause some side effects. Component attributes map is used to store org.apache.myfaces.view.facelets.MARK_ID key, but do that creates 2 HashMap instances (state helper, state helper attributes key) with default size, but in practice only 1 attribute will be set. This component is just a reference to render markup, so there it is a waste of memory resources, more if you consider that jsf pages are a mixture between markup (backed by UILeaf) and stateful components.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: