You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "John Ross (JIRA)" <ji...@apache.org> on 2015/08/29 10:11:46 UTC
[jira] [Created] (ARIES-1390) BasicCapability should take advantage
of the effective immutability of capabilities.
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)