From: Ondřej Surý Date: Tue, 12 Sep 2023 07:10:41 +0000 (+0200) Subject: Reduce struct isc__nm_uvreq size from 1560 to 560 bytes X-Git-Tag: v9.19.22~50^2~2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=eada7b6e1302b50f298c5ee96829bae2f24b1482;p=thirdparty%2Fbind9.git Reduce struct isc__nm_uvreq size from 1560 to 560 bytes The uv_req union member of struct isc__nm_uvreq contained libuv request types that we don't use. Turns out that uv_getnameinfo_t is 1000 bytes big and unnecessarily enlarged the whole structure. Remove all the unused members from the uv_req union. --- diff --git a/lib/isc/netmgr/netmgr-int.h b/lib/isc/netmgr/netmgr-int.h index 596333d1dda..6b83cb4cd1d 100644 --- a/lib/isc/netmgr/netmgr-int.h +++ b/lib/isc/netmgr/netmgr-int.h @@ -301,14 +301,9 @@ struct isc__nm_uvreq { union { uv_handle_t handle; - uv_req_t req; - uv_getaddrinfo_t getaddrinfo; - uv_getnameinfo_t getnameinfo; - uv_shutdown_t shutdown; uv_write_t write; uv_connect_t connect; uv_udp_send_t udp_send; - uv_fs_t fs; } uv_req; ISC_LINK(isc__nm_uvreq_t) link; ISC_LINK(isc__nm_uvreq_t) active_link;