myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Resolved] (MYFACES-3560) [perf] Add FaceletCompositionContext.incrementUniqueComponentId() and prevent create ids when is not necessary
Date Mon, 11 Jun 2012 15:48:42 GMT

     [ https://issues.apache.org/jira/browse/MYFACES-3560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Leonardo Uribe resolved MYFACES-3560.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.8
                   2.0.14
         Assignee: Leonardo Uribe
    
> [perf] Add FaceletCompositionContext.incrementUniqueComponentId() and prevent create
ids when is not necessary
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-3560
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3560
>             Project: MyFaces Core
>          Issue Type: Improvement
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.14, 2.1.8
>
>
> There are some cases, when part or the whole component tree is refreshed, in which it
is not necessary to calculate the generated component id. Instead, it is possible to reorganize
the code a little bit and add FaceletCompositionContext.incrementUniqueComponentId() to cause
the same effect without generate the instance. An increment in a counter will be always faster
than any check in the cache or any unnecessary String generation. 
> Remember there is a static table for generated component ids, so the effect is minimal
in typical cases, but anyway I think it is worth to do it because in dynamic parts, the static
table is not used.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message