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

[perf] optimize UILeaf

    XMLWordPrintableJSON

Details

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

    Description

      UILeaf is a facelets internal class that acts as a wrapper for html markup. Since this is a stateless transient class, used intensively by JSF it is better to reduce the size and overhead caused by this class.

      1. Make this class extends from UIComponent instead UIComponentBase to reduce the overall size of the object in memory.
      2. Do not use an extra object for implement its attribute map.
      3. Use a variable for ComponentSupport.MARK_CREATED instead store it into a HashMap.

      With these optimizations we can reduce object size to less than a half and replace a lot of calls to HashMap.get() by simple variable assignments.

      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: