[
https://issues.apache.org/jira/browse/MYFACES-3823?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Leonardo Uribe resolved MYFACES-3823.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.2.0
> [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
> Fix For: 2.2.0
>
>
> 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)