[perf] reduce (internal) usage of getFacetsAndChildren()
--------------------------------------------------------

                 Key: MYFACES-3155
                 URL: https://issues.apache.org/jira/browse/MYFACES-3155
             Project: MyFaces Core
          Issue Type: Sub-task
            Reporter: Martin Kočí
            Assignee: Martin Kočí
            Priority: Minor


Subtask of MYFACES-3130 [PERF] Avoid unnecessary AbstractList$Itr instances.

Myfaces  use getFacetsAndChildren() iterator for iterating over children in 
lifecycle methods process(Decodes,Validation,...). 

In typical scenario, one invocation of getFacetsAndChildren() creates:
1) one instance of iterator from getFacets().values().iterator()
2) one instance of iterator from getChildren().iterator()
3) one instance of _FacetsAndChildrenIterator

we can avoid 2) and 3) with index-based iteration over getChildren(). It will 
also run faster (see MYFACES-3130).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to