]> git.ipfire.org Git - thirdparty/bind9.git/commit
reduce memory consumption of qpzone database
authorEvan Hunt <each@isc.org>
Tue, 12 Mar 2024 01:47:01 +0000 (18:47 -0700)
committerEvan Hunt <each@isc.org>
Thu, 14 Mar 2024 17:20:52 +0000 (10:20 -0700)
commitf908d358c48cf209286fb4733f23dfe8a49e371a
tree04272f7835258577bdf728b75eb2b900ec511dd1
parent78aa2fb64cb3bd2c0294d7a3c9aed192676cae04
reduce memory consumption of qpzone database

every node of a QP database contains a copy of the nodename,
which is used as the key for the QP-trie. previously, the name
was stored as a dns_fixedname object, which has room for up to
255 characters. we can reduce the space consumed by dynamically
allocating a dns_name object that's just long enough for the name
to be stored.
lib/dns/qpzone.c