[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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]