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

[perf] review UIComponentBase.getRendererType

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.0-SNAPSHOT
    • 2.0.13, 2.1.7
    • General
    • None
    • myfaces core trunk

    Description

      1) method UIComponentBase.getRendererType is the most frequent, because all encodeBegin, getRendersChildren and encodeAll l try to locate renderer

      2) getRendererType uses StateHelper.eval - but can be renderType ValueExpression? If not, change StateHelper.eval to StateHelper.get

      3) should rendererType even be part of state saving? Each component I've ever seen has setRendererType("com.foo.renderer") in constructor and/or VDL calls setRendererType() after calling Application.createComponent(): If rendererType is not part of state saving, replace StateHelper with attribute

      4) Cache getRenderer(FacesContext context) result anyway (I'll create separate issue for this)

      Attachments

        1. MYFACES-3136.patch
          1 kB
          Martin Kočí

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: