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)

Reply via email to