mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
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:
committed by
Tom Ritchford
parent
a61ffab3f9
commit
1979846e5e
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user