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.
This commit is contained in:
Ondřej Surý
2025-01-22 14:12:38 +01:00
parent a7630c2c62
commit d8206a939c
+1 -6
View File
@@ -391,16 +391,11 @@ struct isc__nm_uvreq {
int connect_tries; /* connect retries */
union {
uv_handle_t handle;
uv_req_t req;
uv_getaddrinfo_t getaddrinfo;
uv_getnameinfo_t getnameinfo;
uv_shutdown_t shutdown;
uv_handle_t handle;
uv_write_t write;
uv_connect_t connect;
uv_udp_send_t udp_send;
uv_fs_t fs;
uv_work_t work;
} uv_req;
ISC_LINK(isc__nm_uvreq_t) link;
};