From 30121de96335ee4d07e644b3553b1ea864a573d7 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Wed, 18 Mar 2015 18:47:48 -0400 Subject: [PATCH] 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. --- beast/container/tests/aged_associative_container.test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beast/container/tests/aged_associative_container.test.cpp b/beast/container/tests/aged_associative_container.test.cpp index b282da733c..6a77d5d2d2 100644 --- a/beast/container/tests/aged_associative_container.test.cpp +++ b/beast/container/tests/aged_associative_container.test.cpp @@ -387,10 +387,10 @@ public: template static - std::list + std::vector make_list (Cont const& c) { - return std::list ( + return std::vector ( c.begin(), c.end()); }