Change several uses of std::list to alternative containers:

*  Performance motivated.
*  Several of these called size() which is O(N) in gcc-4.8.
*  Remove container copy from LedgerConsensusImp::playbackProposals().
*  Addresses RIPD-284.
This commit is contained in:
Howard Hinnant
2015-03-18 18:47:48 -04:00
committed by Tom Ritchford
parent a61ffab3f9
commit 1979846e5e
12 changed files with 41 additions and 40 deletions

View File

@@ -303,7 +303,7 @@ std::vector<uint256> SHAMap::getNeededHashes (int max, SHAMapSyncFilter* filter)
}
bool SHAMap::getNodeFat (SHAMapNodeID wanted, std::vector<SHAMapNodeID>& nodeIDs,
std::list<Blob >& rawNodes, bool fatRoot, bool fatLeaves) const
std::vector<Blob >& rawNodes, bool fatRoot, bool fatLeaves) const
{
// Gets a node and some of its children