]> git.ipfire.org Git - thirdparty/bind9.git/commit
shrunk cfgobj down from 48 bytes to 40 bytes
authorColin Vidal <colin@isc.org>
Fri, 5 Dec 2025 21:02:36 +0000 (22:02 +0100)
committerColin Vidal <colin@isc.org>
Sat, 6 Dec 2025 07:51:23 +0000 (08:51 +0100)
commit9c82d15bc2c40316eba032eca5941254f6f050e0
tree0d0c766acdea37b05745a1583b56ac684fe79c61
parent9afe83c54684a4980260ffee374eb51f428deb72
shrunk cfgobj down from 48 bytes to 40 bytes

Follow-up of 38ce2906 as the size of the `cfg_obj_t` can actually goes
down to 40 bytes "for free", by using bitfields to only use 31 bits for
the `line` field, so the remaining bit can be use to hold the `cloned`
state without paying the extra 8 bytes padding.
lib/isccfg/include/isccfg/grammar.h
lib/isccfg/parser.c