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 ;
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
MemMgr::MemMgr() {
|
MemMgr::MemMgr() {
|
||||||
|
|
||||||
debugLevel = 0;
|
debugLevel = 0;
|
||||||
reducedCheckpoint = true;
|
reducedCheckpoint = true;
|
||||||
hexfloatCheckpoint = false;
|
hexfloatCheckpoint = false;
|
||||||
compactArraysCheckpoint = true;
|
compactArraysCheckpoint = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user