From: bert hubert Date: Tue, 9 Dec 2014 14:00:52 +0000 (+0100) Subject: improve cache hitrate X-Git-Tag: rec-3.7.0-rc1~130 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=90974597aadaf1096e3fd0dc450be7422ea591a5;p=thirdparty%2Fpdns.git improve cache hitrate --- diff --git a/pdns/dns.cc b/pdns/dns.cc index 42a3cafcd6..1678f7072c 100644 --- a/pdns/dns.cc +++ b/pdns/dns.cc @@ -101,7 +101,7 @@ bool dnspacketLessThan(const std::string& a, const std::string& b) int result=0; unsigned int n; for(n = 0; n < aLabelLen && n < bLabelLen; ++n) - if((result = aSafe[aPos + n] - bSafe[bPos +n])) // XXX this should perhaps be dns_tolower + if((result = dns_tolower(aSafe[aPos + n]) - dns_tolower(bSafe[bPos +n]))) break; // cerr<<"Done loop, result="<