From 90974597aadaf1096e3fd0dc450be7422ea591a5 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Tue, 9 Dec 2014 15:00:52 +0100 Subject: [PATCH] improve cache hitrate --- pdns/dns.cc | 2 +- pdns/recpacketcache.cc | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) 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="<