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

John Ross resolved ARIES-1390.
------------------------------
    Resolution: Fixed

http://svn.apache.org/r1698444

> BasicCapability should take advantage of the effective immutability of 
> capabilities.
> ------------------------------------------------------------------------------------
>
>                 Key: ARIES-1390
>                 URL: https://issues.apache.org/jira/browse/ARIES-1390
>             Project: Aries
>          Issue Type: Improvement
>          Components: Subsystem
>    Affects Versions: subsystem-2.0.2
>            Reporter: John Ross
>            Assignee: John Ross
>            Priority: Minor
>              Labels: perfomance
>         Attachments: BasicCapability-Screenshot-Java Monitor.png, 
> BasicCapability-after.cpu, BasicCapability-before.cpu, 
> ManyFeaturesWithSharedBundlesTest.java
>
>
> Currently, when given an already existing Capability at construction, 
> BasicCapability will make a copy of the attributes and directives. This is 
> not really necessary since a properly implemented Capability will be 
> effectively immutable as required by the OSGi API.
> Profiling showed that BasicCapability(Capability, Resource) was taking up 
> 4.6%, or 1550 ms, of the total time. After the optimization, this no longer 
> registered with a sampling time of 50 ms.
> BasicCapability(Capability, Resource) will now simply reuse the already 
> existing, and effectively immutable, attribute and directive maps of the 
> provided capability.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to