]> granicus.if.org Git - pdns/commitdiff
small speedup by using reserve() (5% or so)
authorbert hubert <bert.hubert@netherlabs.nl>
Sun, 25 Oct 2015 09:47:28 +0000 (10:47 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Sun, 25 Oct 2015 09:47:28 +0000 (10:47 +0100)
pdns/dnslabeltext.rl

index 300c2022de19345556b5f68868fb1d5b3a654391..21abd67448681887d92ca40c36bcbca56bc03956 100644 (file)
@@ -106,7 +106,7 @@ deque<string> segmentDNSName(const string& input )
         char val = 0;
 
         string label;
-
+       label.reserve(10);
         %%{
                 action labelEnd { 
                         ret.push_back(label);