From: bert hubert Date: Sun, 25 Oct 2015 09:47:28 +0000 (+0100) Subject: small speedup by using reserve() (5% or so) X-Git-Tag: dnsdist-1.0.0-alpha1~252^2~6^2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=966c3fecbb8ed88844e0f932f70ee614567d765b;p=pdns small speedup by using reserve() (5% or so) --- diff --git a/pdns/dnslabeltext.rl b/pdns/dnslabeltext.rl index 300c2022d..21abd6744 100644 --- a/pdns/dnslabeltext.rl +++ b/pdns/dnslabeltext.rl @@ -106,7 +106,7 @@ deque segmentDNSName(const string& input ) char val = 0; string label; - + label.reserve(10); %%{ action labelEnd { ret.push_back(label);