You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Geoff Winn (JIRA)" <tu...@ws.apache.org> on 2007/02/26 19:07:06 UTC
[jira] Resolved: (TUSCANY-1139) [SDO for C++] Use x.push_back(y)
rather than x.insert(x.end(), y)
[ https://issues.apache.org/jira/browse/TUSCANY-1139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Geoff Winn resolved TUSCANY-1139.
---------------------------------
Resolution: Fixed
All cases changed as described
> [SDO for C++] Use x.push_back(y) rather than x.insert(x.end(), y)
> -----------------------------------------------------------------
>
> Key: TUSCANY-1139
> URL: https://issues.apache.org/jira/browse/TUSCANY-1139
> 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
>
>
> There are numerous places in the code where an item is appended to the end of a list or vector using code similar to
> vector.insert(vector.end(), new_item);
> This is less efficient than the preferred form which is
> vector.push_back(new_item);
> The performance impact of this is visible on Linux platforms using callgrind.
--
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org