[ 
https://issues.apache.org/jira/browse/MYFACES-3428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Leonardo Uribe resolved MYFACES-3428.
-------------------------------------

    Resolution: Fixed
    
> [perf] optimize UILeaf
> ----------------------
>
>                 Key: MYFACES-3428
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3428
>             Project: MyFaces Core
>          Issue Type: Improvement
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to