]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - pdns/dnsname.cc
turns out we were using libc tolower in performance sensitive places.. top in perf
[thirdparty/pdns.git] / pdns / dnsname.cc
index c2c9a710f25837ad0b7c83e5b8d9f8f455d7bb42..ddc3998c077cafc5d8e91380e03e49fed13374f9 100644 (file)
@@ -284,7 +284,7 @@ bool DNSName::operator==(const DNSName& rhs) const
   auto us = d_storage.crbegin();
   auto p = rhs.d_storage.crbegin();
   for(; us != d_storage.crend() && p != rhs.d_storage.crend(); ++us, ++p) {   // why does this go backward? 
-    if(tolower(*p) != tolower(*us))
+    if(dns2_tolower(*p) != dns2_tolower(*us))
       return false;
   }
   return true;