XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.1.1
    • JSR-314
    • None

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

      Attachments

        1. myfaces-api-MYFACES-3155.patch
          8 kB
          Martin Kočí
        2. myfaces-impl-MYFACES-3155.patch
          2 kB
          Martin Kočí

        Activity

          People

            markoc50 Martin Kočí
            markoc50 Martin Kočí
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: