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] [Created] (MYFACES-3560) [perf] Add FaceletCompositionContext.incrementUniqueComponentId() and prevent create ids when is not necessary
Date Mon, 04 Jun 2012 15:53:23 GMT
Leonardo Uribe created MYFACES-3560:
---------------------------------------

             Summary: [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


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