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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment