Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      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.

      Specify:
      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

      See:
      https://issues.apache.org/jira/browse/MYFACES-3130
      http://www.mail-archive.com/dev@myfaces.apache.org/msg52979.html

        Activity

        Martin Kočí created issue -
        Ed Burns made changes -
        Field Original Value New Value
        Assignee Ed Burns [ edburns ]
        Ed Burns made changes -
        Priority Major [ 3 ] Trivial [ 5 ]
        Manfred Riem made changes -
        Priority Trivial [ 5 ] Minor [ 4 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Martin Kočí
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: