Description
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).