]> git.ipfire.org Git - thirdparty/pdns.git/commit
Shrink PacketID by 10% by eliminating padding. 3364/head
authorAndrew Nelless <andrew@nelless.net>
Fri, 12 Feb 2016 22:42:30 +0000 (22:42 +0000)
committerAndrew Nelless <andrew@nelless.net>
Fri, 12 Feb 2016 22:46:37 +0000 (22:46 +0000)
commit91ffe057439e1e6737c7e565deb2a4e413f43f55
tree9b956e7bfedb667b518fdbe1f16cafb30aed1743
parent344132fb0a3226c52c8d54c4742d28b0e94a79d6
Shrink PacketID by 10% by eliminating padding.

PacketID is bloated. Some minor reordering, which shouldn't effect
locality, reduces sizeof(PacketID) from 232 to 208 bytes compiled
against GNU libstdc++ (shipped with GCC 5.3, C++11 ABI) and from 184 to
160 bytes against libc++ 3.7.0. In both cases only 3 bytes of padding
remain for aligning 'bool inIncompleteOkay'.
pdns/syncres.hh