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

Leonardo Uribe resolved MYFACES-3713.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.12
                   2.0.18
         Assignee: Leonardo Uribe
    
> [perf] use getFacetCount() when possible and avoid create iterator instances
> ----------------------------------------------------------------------------
>
>                 Key: MYFACES-3713
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3713
>             Project: MyFaces Core
>          Issue Type: Improvement
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>            Priority: Trivial
>             Fix For: 2.0.18, 2.1.12
>
>
> There are some spots where getFacets() is called directly or 
> getFacets().isEmpty is used. The ideal is prevent that call and use 
> getFacetCount() when possible. Also, use getFacetsAndChildren() is nicer but 
> use getFacetCount() prevents create 1 iterator per component class that does 
> not have facets attached, which is a common case.
> The effect is very, very small, but anyway it is quite simple to do it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to