mirror of
https://github.com/nasa/trick.git
synced 2025-01-19 03:06:23 +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 ;
|
||||
vector < int > val ;
|
||||
map < LogGroup*, set< int > >::const_iterator ll;
|
||||
listLogGroupIterators_.reserve(listLogGroupIterators_.size()
|
||||
+ lg2log.size());
|
||||
for (ll = lg2log.begin(); ll != lg2log.end(); ll++) {
|
||||
|
||||
key = (*ll).first ;
|
||||
|
@ -11,16 +11,16 @@
|
||||
MemMgr::MemMgr() {
|
||||
|
||||
debugLevel = 0;
|
||||
reducedCheckpoint = true;
|
||||
reducedCheckpoint = true;
|
||||
hexfloatCheckpoint = false;
|
||||
compactArraysCheckpoint = true;
|
||||
|
||||
|
||||
defaultCheckPointAgent = new ClassicChkPtAgent( std::cout );
|
||||
defaultCheckPointAgent->setDebugLevel( debugLevel);
|
||||
defaultCheckPointAgent->setReducedCheckpoint( reducedCheckpoint);
|
||||
defaultCheckPointAgent->setHexfloatCheckpoint( hexfloatCheckpoint);
|
||||
defaultCheckPointAgent->setMakeCompactArrays( compactArraysCheckpoint );
|
||||
|
||||
|
||||
currentCheckPointAgent = defaultCheckPointAgent;
|
||||
|
||||
typeDictionary = new TypeDictionary();
|
||||
|
Loading…
Reference in New Issue
Block a user