You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2011/07/23 23:25:09 UTC

[jira] [Created] (MYFACES-3238) [PERF] Improve Application.createConverter(Class forClass) method

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

                 Key: MYFACES-3238
                 URL: https://issues.apache.org/jira/browse/MYFACES-3238
             Project: MyFaces Core
          Issue Type: Improvement
          Components: JSR-314
            Reporter: Leonardo Uribe


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).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (MYFACES-3238) [PERF] Improve Application.createConverter(Class forClass) method

Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-3238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leonardo Uribe resolved MYFACES-3238.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.2
                   2.0.8
         Assignee: Leonardo Uribe

> [PERF] Improve Application.createConverter(Class<?> forClass) method
> --------------------------------------------------------------------
>
>                 Key: MYFACES-3238
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3238
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: JSR-314
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.8, 2.1.2
>
>
> 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).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira