[
https://issues.apache.org/jira/browse/ARIES-1667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15830676#comment-15830676
]
ASF subversion and git services commented on ARIES-1667:
--------------------------------------------------------
Commit 1779531 from [email protected] in branch 'aries/trunk'
[ https://svn.apache.org/r1779531 ]
[ARIES-1667] findCandidates for already resolved resources is slow
Change-Id: I0447eee596bb29d136a609102e8906becde5f825
Signed-off-by: Thomas Watson <[email protected]>
> findCandidates for already resolved resources is slow
> -----------------------------------------------------
>
> Key: ARIES-1667
> URL: https://issues.apache.org/jira/browse/ARIES-1667
> Project: Aries
> Issue Type: Bug
> Components: Subsystem
> Reporter: Thomas Watson
>
> org.apache.aries.subsystem.core.internal.ResolveContext.processWire(Wire,
> Requirement, List<Capability>)
> The processWire method for ResolveContext is used when doing off-line
> resolution of a subsystem for resources that are already resolved in the host
> framework (or the system repository). The problem is the way the candidates
> are discovered with the existing wirings. The existing code will iterate
> over every wire looking for a capability that matches the given requirement.
> This is a lot of work because it requires filter matching against every
> capability the resolved resource is wired to.
> I see no reason the filter matching is required here. We have the resources
> requirement and the resources wiring wire which uses the requirement. All we
> need to do is find the wires that use the requirement. The capabilities
> attached to these wires have to match. Checking for requirement equality
> should be faster that checking every capability wired to for a match.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)