]> granicus.if.org Git - pdns/commitdiff
further rings speedup
authorbert hubert <bert.hubert@netherlabs.nl>
Mon, 7 Dec 2015 06:51:24 +0000 (07:51 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Mon, 7 Dec 2015 06:51:24 +0000 (07:51 +0100)
pdns/dnsdist-lua.cc

index c5a538d152650e9b95a773d9b4bcce90272c2298..56fcf45a59dcf9f895a34c923b4e9e7404ea8327 100644 (file)
@@ -665,6 +665,7 @@ vector<std::function<void(void)>> setupLua(bool client, const std::string& confi
         }
       }
       vector<pair<int, ComboAddress>> rcounts;
+      rcounts.reserve(counts.size());
       for(const auto& c : counts) 
        rcounts.push_back(make_pair(c.second, c.first));