mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-25 13:35:54 +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
fbf9c86c5c
commit
30121de963
@@ -387,10 +387,10 @@ public:
|
|||||||
|
|
||||||
template <class Cont>
|
template <class Cont>
|
||||||
static
|
static
|
||||||
std::list <typename Cont::value_type>
|
std::vector <typename Cont::value_type>
|
||||||
make_list (Cont const& c)
|
make_list (Cont const& c)
|
||||||
{
|
{
|
||||||
return std::list <typename Cont::value_type> (
|
return std::vector <typename Cont::value_type> (
|
||||||
c.begin(), c.end());
|
c.begin(), c.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user