]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
remove sun_path field from isc_netaddr
authorColin Vidal <colin@isc.org>
Thu, 30 Oct 2025 18:37:05 +0000 (19:37 +0100)
committerEvan Hunt <each@isc.org>
Thu, 30 Oct 2025 18:44:08 +0000 (11:44 -0700)
The sun_path field is not used anymore, and consumes over a hundred
bytes for every isc_netaddr_t object. Remove it.

As isc_netaddr_t is used in cfg_obj_t, in some huge configuration trees
(e.g., a million zones), the gain is almost 1GB of resident memory.

lib/isc/include/isc/netaddr.h

index 6e7004a9a9985703438bd694a21f37b3c239dfcb..2aa229d218fe36d388cbf544c1c1e2137346bd26 100644 (file)
@@ -32,7 +32,6 @@ struct isc_netaddr {
        union {
                struct in_addr  in;
                struct in6_addr in6;
-               char            un[sizeof(((struct sockaddr_un *)0)->sun_path)];
        } type;
        uint32_t zone;
 };