John Ross created ARIES-1390:
--------------------------------

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


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