]> git.ipfire.org Git - thirdparty/bind9.git/commit
Inline prefix into radix tree node
authorOndřej Surý <ondrej@sury.org>
Sat, 21 Mar 2026 16:19:40 +0000 (17:19 +0100)
committerOndřej Surý <ondrej@sury.org>
Wed, 1 Jul 2026 04:05:55 +0000 (06:05 +0200)
commit7e9bb910877928811a77d4b3235bb08ff2d701f9
treecab68d026899cc8f0add24cdde970359a32796d9
parentdb9d9313c2373b2cc650e6aea4933a39efc6ad3f
Inline prefix into radix tree node

Embed isc_prefix_t directly in isc_radix_node_t instead of heap-
allocating it separately. This eliminates per-node isc_mem_get/put
and isc_mem_attach/detach calls, removes a pointer dereference on
every search comparison, and simplifies the code by removing the
_new_prefix, _ref_prefix, and _deref_prefix helpers entirely.

Remove isc_mem_t from isc_prefix_t since it is now a plain value
type with no memory management. Remove per-node isc_mem_t since
nodes use the tree's memory context. Reorder struct fields to
eliminate padding holes.
lib/dns/acl.c
lib/isc/include/isc/radix.h
lib/isc/radix.c