From a73fc8123d962a01d0432bbba87533bc6b85b78d Mon Sep 17 00:00:00 2001 From: bert hubert Date: Mon, 7 Dec 2015 07:51:24 +0100 Subject: [PATCH] further rings speedup --- pdns/dnsdist-lua.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index c5a538d15..56fcf45a5 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -665,6 +665,7 @@ vector> setupLua(bool client, const std::string& confi } } vector> rcounts; + rcounts.reserve(counts.size()); for(const auto& c : counts) rcounts.push_back(make_pair(c.second, c.first)); -- 2.40.0