You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Martin Kočí (JIRA)" <de...@myfaces.apache.org> on 2011/06/01 21:15:47 UTC
[jira] [Resolved] (MYFACES-3155) [perf] reduce (internal) usage of
getFacetsAndChildren()
[ https://issues.apache.org/jira/browse/MYFACES-3155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Kočí resolved MYFACES-3155.
----------------------------------
Resolution: Fixed
Fix Version/s: 2.1.1-SNAPSHOT
> [perf] reduce (internal) usage of getFacetsAndChildren()
> --------------------------------------------------------
>
> Key: MYFACES-3155
> URL: https://issues.apache.org/jira/browse/MYFACES-3155
> Project: MyFaces Core
> Issue Type: Sub-task
> Components: JSR-314
> Reporter: Martin Kočí
> Assignee: Martin Kočí
> Priority: Minor
> Fix For: 2.1.1-SNAPSHOT
>
> Attachments: myfaces-api-MYFACES-3155.patch, myfaces-impl-MYFACES-3155.patch
>
>
> Subtask of MYFACES-3130 [PERF] Avoid unnecessary AbstractList$Itr instances.
> Myfaces use getFacetsAndChildren() iterator for iterating over children in lifecycle methods process(Decodes,Validation,...).
> In typical scenario, one invocation of getFacetsAndChildren() creates:
> 1) one instance of iterator from getFacets().values().iterator()
> 2) one instance of iterator from getChildren().iterator()
> 3) one instance of _FacetsAndChildrenIterator
> we can avoid 2) and 3) with index-based iteration over getChildren(). It will also run faster (see MYFACES-3130).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira