]> granicus.if.org Git - pdns/commitdiff
Shrink PacketCache::CacheEntry from 56 to 48 bytes
authorPieter Lexis <pieter.lexis@powerdns.com>
Tue, 26 May 2015 11:08:40 +0000 (13:08 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 19 Jun 2015 20:51:48 +0000 (22:51 +0200)
pdns/packetcache.hh

index 758da9c8269bdb2cf10bd207f6b645bb12b3ea7c..33bec4916e322cffb08f26ce636ae5e86a0cfc56 100644 (file)
@@ -78,16 +78,18 @@ private:
     CacheEntry() { qtype = ctype = 0; zoneID = -1; meritsRecursion=false; dnssecOk=false; hasEDNS=false;}
 
     string qname;
+    string value;
+    time_t created;
+    time_t ttd;
+
     uint16_t qtype;
     uint16_t ctype;
     int zoneID;
-    time_t created;
-    time_t ttd;
-    bool meritsRecursion;
     unsigned int maxReplyLen;
+
+    bool meritsRecursion;
     bool dnssecOk;
     bool hasEDNS;
-    string value;
   };
 
   void getTTLS();