From: Pieter Lexis Date: Fri, 22 May 2015 16:05:48 +0000 (+0200) Subject: Shrink DomainInfo from 80 to 72 bytes X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~77^2~4^2~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52ff1db18290ad8d42de702abc762d6f0cea4062;p=thirdparty%2Fpdns.git Shrink DomainInfo from 80 to 72 bytes Also type the DomainKind enum to uint8_t (doesn't help with the total size of the Class, but might in the future). --- diff --git a/pdns/dnsbackend.hh b/pdns/dnsbackend.hh index 8ae15c9e0c..861ed91b48 100644 --- a/pdns/dnsbackend.hh +++ b/pdns/dnsbackend.hh @@ -45,15 +45,18 @@ class DNSBackend; struct DomainInfo { DomainInfo() : backend(0) {} - uint32_t id; + string zone; - vector masters; - uint32_t notified_serial; - uint32_t serial; time_t last_check; string account; - enum DomainKind { Master, Slave, Native } kind; + vector masters; DNSBackend *backend; + + uint32_t id; + uint32_t notified_serial; + + uint32_t serial; + enum DomainKind : uint8_t { Master, Slave, Native } kind; bool operator<(const DomainInfo& rhs) const {