[
https://issues.apache.org/jira/browse/OWB-1457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thomas Andraschko resolved OWB-1457.
------------------------------------
Resolution: Fixed
> [perf] Reuse generics “visited” map in InjectionResolver#implResolveByType
> --------------------------------------------------------------------------
>
> Key: OWB-1457
> URL: https://issues.apache.org/jira/browse/OWB-1457
> Project: OpenWebBeans
> Issue Type: Task
> Reporter: Thomas Andraschko
> Assignee: Thomas Andraschko
> Priority: Major
> Fix For: 4.1.0
>
>
> During implResolveByType, GenericsUtil.satisfiesDependency was called with a
> new HashMap for every bean API type (and again inside findByParameterizedType
> / findByBeanType). That caused many short-lived maps on each cache miss or
> startup validation.
> Allocate one HashMap<Type, Integer> per implResolveByType invocation, clear()
> before each satisfiesDependency call, and pass it through
> findByParameterizedType and findByBeanType. Semantics are unchanged
--
This message was sent by Atlassian Jira
(v8.20.10#820010)