From: bert hubert Date: Mon, 7 Dec 2015 06:51:24 +0000 (+0100) Subject: further rings speedup X-Git-Tag: dnsdist-1.0.0-alpha1~111 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a73fc8123d962a01d0432bbba87533bc6b85b78d;p=pdns further rings speedup --- 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));