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

[perf] do not calculate facelets view mappings and context suffixes if not necessary

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.16, 2.1.10
    • Component/s: JSR-314
    • Labels:
      None

      Description

      Doing some perf tests, I notice some methods in DefaultViewHandlerSupport and DefaultRestoreViewSupport are called multiple times, but always return the same value over and over, because they are based on initialization params, which does not change over application lifetime.

      The solution is do some small changes over these two classes, passing FacesContext as constructor and calculating those values only the first time those classes are created.

        Attachments

          Activity

            People

            • Assignee:
              lu4242 Leonardo Uribe
              Reporter:
              lu4242 Leonardo Uribe
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: