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

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.16, 2.1.10
    • JSR-314
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: