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

[PERF] Cache renderer in UIComponentBase

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0-SNAPSHOT
    • Fix Version/s: 2.0.13, 2.1.7
    • Component/s: General
    • Labels:
      None
    • Environment:
      myfaces core trunk

      Description

      UIComponentBase uses getRenderer(): Renderer in five methods:
      1) decode
      2) encodeBegin
      3) encodeChildren
      4) encodeEnd
      50 getClientId

      getting the renderer is not cheap if you have thousands component in view.

      Cache renderer instance in UIComponentBase (Trinidad UIXComponentBase does it already)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: