]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
we used toString() to compare incoming packets - showed up in profile at 3% or so
authorbert hubert <bert.hubert@netherlabs.nl>
Mon, 22 Feb 2016 14:26:55 +0000 (15:26 +0100)
committerbert hubert <bert.hubert@powerdns.com>
Wed, 24 Feb 2016 13:36:36 +0000 (14:36 +0100)
pdns/syncres.hh

index 5ed097e9ebfecc92ab0782070797da998d332d59..e86d0d85d92852ff05b9ababa0522db332e18183 100644 (file)
@@ -554,7 +554,7 @@ struct PacketIDBirthdayCompare: public std::binary_function<PacketID, PacketID,
     if( tie(a.remote, ourSock, a.type) > tie(b.remote, bSock, b.type))
       return false;
 
-    return pdns_ilexicographical_compare(a.domain.toString(), b.domain.toString()); // FIXME400
+    return a.domain < b.domain;
   }
 };
 extern __thread MemRecursorCache* t_RC;