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

[PERF] Improve Application.createConverter(Class<?> forClass) method

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.8, 2.1.2
    • Component/s: JSR-314
    • Labels:
      None

      Description

      This method is called every time a h:outputText is rendered. The problem is each time it calls ClassUtils.simpleClassForName, which is an expensive call. For Application.createConverter(final String converterId) we use a _converterIdToClassMap that reduce the cost involved but we don't have something similar on Application.createConverter(Class<?> forClass).

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: