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: None
    • Labels:
      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.

        Activity

        Leonardo Uribe made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Leonardo Uribe made changes -
        Fix Version/s 2.0.12 [ 12319175 ]
        Fix Version/s 2.1.6 [ 12319173 ]
        Leonardo Uribe made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Leonardo Uribe created 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