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 2013/11/08 06:16:17 UTC

[jira] [Created] (MYFACES-3823) [perf] use a preinitialized table of unique ids for UIViewRoot.createUniqueId(...)

Leonardo Uribe created MYFACES-3823:
---------------------------------------

             Summary: [perf] use a preinitialized table of unique ids for UIViewRoot.createUniqueId(...)
                 Key: MYFACES-3823
                 URL: https://issues.apache.org/jira/browse/MYFACES-3823
             Project: MyFaces Core
          Issue Type: Improvement
          Components: JSR-344
            Reporter: Leonardo Uribe
            Assignee: Leonardo Uribe


Thinking about ways to improve MyFaces, I have realized we can use a table of preinitialized ids in UIViewRoot.createUniqueId(...). In that way, we can save some HashMap.get(...) calls and avoid instantiation of ids we can already know how they look like beforehand. A good number is preinitialize the first 50 ids for ResourceDependency components and other generated components.

I think it is worth to use Integer instead Long for the unique id generation too.



--
This message was sent by Atlassian JIRA
(v6.1#6144)