[ 
https://issues.apache.org/jira/browse/OWB-638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Kočí updated OWB-638:
----------------------------

    Attachment: OWB-638.patch

patch for methods for discovered by profiler

some public method accept List as parameter and iterates over this list with 
iterator, but internally OWB deliver only ArrayList - can those method use 
index based loop ? (example: InterceptorUtil.filterCommonInterceptorStackList)
                
> [PERF] Avoid unnecessary AbstractList$Itr instances
> ---------------------------------------------------
>
>                 Key: OWB-638
>                 URL: https://issues.apache.org/jira/browse/OWB-638
>             Project: OpenWebBeans
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.1.4
>         Environment: OWB trunk
>            Reporter: Martin Kočí
>            Assignee: Gurkan Erdogdu
>            Priority: Trivial
>         Attachments: OWB-638.patch
>
>
> Avoid unnecessary AbstractList$Itr instances with if-check:
> if (stack.size() > 0)
> {
> ... stack.iterator()
> or with index based loop

--
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


Reply via email to