mirror of
https://github.com/nasa/trick.git
synced 2025-01-19 11:16:27 +00:00
Merge pull request #727 from shahzadlone/master
Vector Optimize to Save on Re-Allocation costs.
This commit is contained in:
commit
0ce0398823
@ -124,6 +124,8 @@ IterOverLogGroups::IterOverLogGroups( LogMultiGroup* lmg,
|
|||||||
LogGroup* key ;
|
LogGroup* key ;
|
||||||
vector < int > val ;
|
vector < int > val ;
|
||||||
map < LogGroup*, set< int > >::const_iterator ll;
|
map < LogGroup*, set< int > >::const_iterator ll;
|
||||||
|
listLogGroupIterators_.reserve(listLogGroupIterators_.size()
|
||||||
|
+ lg2log.size());
|
||||||
for (ll = lg2log.begin(); ll != lg2log.end(); ll++) {
|
for (ll = lg2log.begin(); ll != lg2log.end(); ll++) {
|
||||||
|
|
||||||
key = (*ll).first ;
|
key = (*ll).first ;
|
||||||
|
Loading…
Reference in New Issue
Block a user