Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3552

[perf] pps: reduce amout of Object [] created in _DeltaList.saveState

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.2.10
    • None
    • None

    Description

      consider a component with 5 listeners (or other attached objects). All listeners implement PartialStateHolder.
      In a ideal case, delta is 0.

      javax.faces.component._DeltaList.saveState(FacesContext) currently creates :
      1) a Object [] array with length 5
      2) a _AttachedDeltaWrapper, one for each listener, 5 total

      but in the end, when delta is 0, saveState returns null and all object are GCed immediately

      Attachments

        1. MYFACES-3552-v1.patch
          2 kB
          Martin Kočí

        Activity

          People

            lu4242 Leonardo Uribe
            markoc50 Martin Kočí
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: