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

Geoff Winn resolved TUSCANY-1136.
---------------------------------

    Resolution: Fixed

Revised use of Type::getProperties built and tested on XP, RHEL3 and Ubuntu.

Using sdotest, callgrind shows time spent in getProperties dropped from just 
over 30% to just under 5%.

> [SDO for C++] getProperties returns a copy of the property list which is 
> expensive and often unnecessary
> --------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1136
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1136
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: C++ SDO
>    Affects Versions: Cpp-current
>         Environment: All
>            Reporter: Geoff Winn
>         Assigned To: Geoff Winn
>             Fix For: Cpp-current
>
>
> The Type::getProperties method returns a PropertyList object. This behaviour 
> is required by the specification however it is inefficient when the 
> PropertyList in question is subsequently used in a read-only manner - which 
> is the common case within SDO. According to callgrind, approximately 30% of 
> the execution time of the sdotest program is spent in getProperties. By 
> adding a new method, such as
> const PropertyList& Type::getPropertyListReference()
> we can preserve the interface required by the specification but give 
> ourselves the option to use the more efficient form whenever possible.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to