Affects Version/s: None
Fix Version/s: None
Performance related problem:
Both Mojarra and MyFaces use iterator() for iteration over children. That is very slow if view is big and contains thousands of components.
1) Specify : UIComponent.getChildren() is type of java.util.RandomAccess
2) Specify new UIComponent.getFacets(): List (java.util.RandomAccess) for fast iteration over facets
1) is very easy because mojarra and myfaces use ArrayList for children (so does trinidad)
I think this is not implementation detail, because custom renderkits must know that fast iteration is possible